How can i impliment a convergence condition in a loop. (the condition is A(k,i)-A(k+1,i)<=0.0001)
and with another condition :( if the condition is true continue, else replace the the last value and repeat).
for k=1:t (time loop)
end (for k)