参考:http://cn.mathworks.com/help/matlab/ref/dbstop.html#inputarg_condition
几个重要命令:
dbstop in file :在file的第一行设置断点
dbstop in file at location:在file的location设置断点
dbstop in file if expression:在expression为真时调试
dbstop in file at location if expressione
dbstop if condition: condition可选error | caught error | warning | naninf | …
dbclear all:清理所有断点
dbcont: 断点后继续执行
dbstep:断点后单步执行
dbquit(或者:ctrl+c):退出执行