Hi guys, I need help.
how can I store iteration result?
while abs(xj-x0)>=errordisp('*****************')x0=xj %new value of x0 to generate new xj in next iteration
y=subs(poly2sym(f),x,x0);fx=[y]Upper=subs(poly2sym(firstDiff),x,x0);Lower=subs(poly2sym(secondDiff),x,x0);xj=x0-(Upper/Lower)
I need to store two vectors, because I will create a plot using these two vector as input
- vector of x0 values
- vector of fx values
Best Answer