Can I determine iteration number which matlab executes?

for example;
while dx~=0 dx=.............
................
end
%after the iteration I want to know how many iterations later dx is reached 0.

 Accepted Answer

count = 0;
while dx~=0
....
....
count = count + 1;
end

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Asked:

on 26 Jun 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!