Click to See Complete Forum and Search --> : Matlab - breakpoint at running function???
yiannakop
April 13th, 2006, 04:14 AM
Hi everyone. I am running an m-file (function, not script) I have created, that implements a series of experiments. I have used no call to keyboard() function and now I see that it is needed to see intermediate results. Is there any way I could force the running function to pause and see indermediate resutls? If I enter a breakpoint while the function is running, I think that the function will stop.
Any ideas,
Thanx in advance,
Theodore.
b4codes
May 10th, 2006, 05:50 PM
you don't need to use breakpoint just use "pause"
example
i=1:10
i
pause
end
the above code will let you see the value of i in every loop, you have to press anykey on the keyboard to terminate the pause and let the code execute another loop, You may also like to visit (http://www.kluid.com) , kluid is a respected matlab forum, you can find more matlab answers there.
: ]
b4
yiannakop
May 11th, 2006, 03:59 AM
Thanx for your answer. I know about pause, and also keyboard functions. But I had not placed sth like this in my code. It was a piece of code running for days, and I was wondering if it is possible to enter in debug mode WHILE the code was running. Anyway, this must be impossible, as I've searched. Anyway, thanx again, and thanx for the forum suggestion.
:wave:
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.