How to plot a function dependent on no. of iterations, provided it plots till nth iteration where n is the number where the function is converged?
3 views (last 30 days)
I am trying to plot a function vs no. of iterations. In the for loop, i have given the convergence condition, but I am unable to plot for f(x) vs no. iterations (till convergence). Please help.
Its of the form:
e = e+pu;
if (abs(pu)/e)<(10^(-6)) %convergence check