syms f(x)sym xf(x)=2*x^2 x=0;v=[];diary('wispn.txt')diary onwhile x<0.36I=int(f,0,x)x=x+0.1;v(t)=w(x,I)t=t+1; enddiary off
MATLAB: How should i store the values of I and X in a vector to plot the graph of I vs X
store valuesvectorwhile loop
Best Answer