10 minutes please given Fxx35x22x10000x Use While loop in ma

10 minutes please

given F(x)=x^3-(5x)^2+2^x-10000x Use While loop in matlab to compute F(x) for many evenely spaced values of 0<=x<=20 and plot the results

Solution

%initialize first,then

%start while loop with the condition given

x=1

while x>20

f(x)=x^3-5*x^2+2^x-1000*x

x=x+1

end

plot(f(x))

10 minutes please given F(x)=x^3-(5x)^2+2^x-10000x Use While loop in matlab to compute F(x) for many evenely spaced values of 0<=x<=20 and plot the result

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site