Community Profile

photo

David Hill


Last seen: Today
3,776 total contributions since 2017

Contact

David Hill's Badges

  • Revival Level 2
  • 12 Month Streak
  • Guiding Light
  • Cody Challenge Master
  • Computational Geometry I Master
  • Famous
  • 5-Star Galaxy Level 3
  • Personal Best Downloads Level 3
  • First Review
  • Matrix Manipulation I Master
  • Indexing II Master
  • Sequences And Series III Master
  • Knowledgeable Level 4
  • Puzzler
  • Scholar

View all

Contributions in
View by

Solved


eukleides triangle

2 hours ago

Answered
While loop for Taylor Series to approximate e^2.7
n = 0; diff=1; x=2.7; while (diff>= 1e-6) terms(n+1) = (x^(n)/factorial(n)); Exp = sum(terms); n=n+1; diff = abs((exp(2...

2 days ago | 1

Answered
Two part question: Labeling a row in a matrix and finding certain values
Normally, you should not establish new variables but just index. DraftMatrix = [1:20;randi([50,90],1,20);randi([0,8],1,20)]; a...

2 days ago | 0

Answered
How to generate a list of random ID which can later be used instead of participant name?
Yes, a strictly numerical format would be much easier. a=[randperm(10,2)+47;randperm(26,2)+96]; a=char(a(:)');

2 days ago | 0

Answered
make input positive mandatory
while 1 a=input('Please input a postive integer'); if isequal(a,floor(a))&&a>0 break; end display('...

2 days ago | 0

| accepted

Answered
How do I make my vector save characters?
v = 7000; ii = 1; while (v > 16) a = rem(v,16); v = floor(v/16); switch a case 10 z = 'A'; case 11 ...

2 days ago | 1

| accepted

Answered
How to run utm2deg function?
Did you try the file exchange utm2deg() function? https://www.mathworks.com/matlabcentral/fileexchange/10914-utm2deg?s_tid=srch...

2 days ago | 0

Answered
Return to input when 'error'
prompt = 'Please key in your desireable SOC: '; while 1 EV_Matrix(no_car,9) = input(prompt); if EV_Matrix(no_car,9) >...

2 days ago | 0

Answered
loops performed on table
idx=TT.Angle>=0&TT.Angle<90; TT.theta(idx)=TT.Angle(idx); TT.yspeed(idx)=TT.Speed(idx).*cosd(TT.theta(idx)); TT.xspeed(idx)=T...

2 days ago | 0

Answered
Plot the Relative Error
V = [10 20 30 40 50 60 70 80]; v=10:.1:80; f=@(x).2741*x.^1.9842; F_D = [25 70 380 550 610 1220 830 1450]; plot(V,F_D,v,f(v)...

3 days ago | 1

| accepted

Answered
Unable to perform assignment because the left and right sides have a different number of elements
t = (0:.2:50); V = zeros(length(t)); for i=1:length(t) if 0 <= t(i)&&t(i) <= 8 V(i) = 10*t(i)^2-5*t(i); elseif ...

3 days ago | 1

Answered
Trouble with saving outer loop values
A = [12 4; 1, 25; 4,19]; B = [90, 85; 60, 50; 90,40]; maxval=[]; for w = 1:5 for r = 1...

3 days ago | 0

| accepted

Answered
I'm a beginner in matlab. I would like to plot a function as function in frequency..
f=1:100e6; capacity=(@f) ;%you need to describe your equation better. The sum*sum is confusing and the size of each variable sh...

3 days ago | 0

| accepted

Answered
Recursive Function - Bisection
Your problem is with your function. E=1; D=5; Re=1; f=@(x)-1./sqrt(x)-2.*log10(((E/D)/3.7)+2.51./(Re*sqrt(x)));%is this the ...

5 days ago | 0

Answered
Assigning NaN to certain values
You might try rounding to 4 decimal places first Temp=round(Temp,4); Temp(ismember(Temp,[-177.6600, -177.6500, -177.6300, -177...

5 days ago | 0

| accepted

Solved


Number Puzzle - 096

9 days ago

Solved


Number Puzzle - 095

9 days ago

Solved


Number Puzzle - 094

9 days ago

Solved


Number Puzzle - 093

9 days ago

Solved


number play

9 days ago

Solved


Number Puzzle - 092

9 days ago

Solved


Number Puzzle - 091

9 days ago

Solved


Number Puzzle - 090

9 days ago

Solved


Number Puzzle - 089

9 days ago

Load more