Friday, April 07, 2006

Debug command in Matlab

This can be used after 'M-x matlab-shell' in emacs to debug the matlab code
dbstop laser.m 12
run laser
dbstep (dbstep 13)
dbstep in (go inside function, dbstep out)
dbclear % clear breakpoints
dbcont % resume execution
dbstatus % list all breakpoints

No comments:

Post a Comment