Community Profile

photo

David Hill


Last seen: Today
4 172 total contributions since 2017

Contact

David Hill's Badges

  • Revival Level 2
  • 12 Month Streak
  • Guiding Light
  • Number Manipulation II Master
  • Draw Letters
  • Cody Problems in Japanese Master
  • 5-Star Galaxy Level 3
  • Personal Best Downloads Level 3
  • First Review
  • Cody Challenge Master
  • Computational Geometry I Master
  • Famous
  • Matrix Manipulation I Master
  • Indexing II Master
  • Sequences And Series III Master

View all

Contributions in
View by

Answered
Why is histcount ignoring one of the edge values in my matrix?
a=readmatrix('GPeak_Histogram_Data.txt'); Aedges = unique(a(:,2)); Acounts = histc(a(:,2), Aedges);%use histc or a=readmatr...

ungefär 2 timmar ago | 0

| accepted

Solved


List Proth primes

ungefär 10 timmar ago

Solved


Flip coins

ungefär 15 timmar ago

Answered
pad matrix to a particular size
assuming m and n are both even. M_resized=padarray(M,[(150-size(M,1))/2 (150-size(M,2))/2],0,'both');

ungefär 19 timmar ago | 1

Answered
How to evaluate a function that has been saved to a variable
syms x; f = 2*tanh(x/2); d1 = diff(f); d2 = diff(f,2); d3 = diff(f,3); fplot(f,[-1,1]); hold on; fplot(d1,[-1,1]); fplot...

ungefär 19 timmar ago | 1

Answered
How to reconstruct a matrix?
z=diag([y;0]); z(end,:)=x(1:length(z)); z(:,end)=x(1:length(z));

ungefär 20 timmar ago | 1

Answered
Generating adjacency matrix for following network
Graph has to be a polygon. numNodes=6; a=randperm(numNodes); b=circshift(a,1); g=graph(a,b); plot(g); m=full(adjacency(g))...

ungefär 20 timmar ago | 0

| accepted

Answered
New to matlab. Trying to make a script to reorganize excel data
a=readcell('yourcellname'); b=unique(a(:,2)); newCell=b'; for k=1:length(b) newCell(2,k)={a(ismember(a(:,2),b{k}),1)}; en...

8 dagar ago | 0

Answered
Relative Ranking of position in an array
If a is your matrix above. sum(find(a==1)-find(a==2)<0);

8 dagar ago | 0

| accepted

Solved


Determine if input is even

9 dagar ago

Solved


Add 100

9 dagar ago

Answered
Need helping in setting a for loop for the below code
u=unique(condIds,'stable');%not sure if you only want to go through the unique entries; otherwise, you will have duplicates for...

9 dagar ago | 0

Answered
Rerun script with different table input
You should always attempt to index. Put all your tables into a single cell array. t{1}=table1; t{2}=table2; %then index into ...

9 dagar ago | 0

| accepted

Solved


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

11 dagar ago

Solved


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

11 dagar ago

Solved


Basic electricity in a dry situation
&#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#9889 &#...

11 dagar ago

Solved


The shortest man in the world

11 dagar ago

Answered
How to show the iterations and the answers and the graph
Why not use a while loop? m = 68.1; g = 9.81; t = 10; v = 40; f =@(c) (g*m*(1-(exp((-c*t)/m)))/c)-v; err = 1e-10; c = 0.1...

11 dagar ago | 0

Answered
Not seeing second plot data
theta = 0:0.02:1; y = sin(theta); plot(theta, y, theta, 1- (theta - y)./y);%need ./ also to keep it the same scale chose 1 ins...

11 dagar ago | 1

Solved


Highest building

13 dagar ago

Solved


Normalizing a vector

13 dagar ago

Solved


Min-Max digit

13 dagar ago

Solved


Similar triangles

13 dagar ago

Solved


End Digits

13 dagar ago

Solved


Do you have the minimum age?

13 dagar ago

Solved


Digits Multiplication

13 dagar ago

Load more