From: Mine on
Hi,

I have a big loop however at some point I would like to stop the loop, look at the results till that moment and continue again from where I interrupted it. For example a loop that will go to 100000 iteration, however it is in 5000 now and I would like to look at the results till 5000. iteration? Is it possible?

Thank you very much in advance.
From: Sean on
"Mine " <taskanmine(a)yahoo.com> wrote in message <htivrs$s55$1(a)fred.mathworks.com>...
> Hi,
>
> I have a big loop however at some point I would like to stop the loop, look at the results till that moment and continue again from where I interrupted it. For example a loop that will go to 100000 iteration, however it is in 5000 now and I would like to look at the results till 5000. iteration? Is it possible?
>
> Thank you very much in advance.

a hint:
>> help dbstop
specific
>>dbstop if ...

Or you could just put an if statement in there with a useless (disp('stopped!')) line and put a break point on that line.