如何在MATLAB中显示当前的执行行程?

时间:2016-01-17 15:17:48

标签: matlab

如何在MATLAB中显示或导航当前的执行行?

目前,我所知道的最接近的是使用dbup / dbdown:

K>> dbup
In workspace belonging to OneLevelAboveWhatImLookingFor (line 465)
K>> dbdown
In workspace belonging to ThisIsTheOne (line 37)

1 个答案:

答案 0 :(得分:0)

感谢AnonSubmitter85!

dbstack显示当前的堆栈跟踪,从而提供了一种导航到下一行执行的简便方法:

K>> dbstack
> In ThisIsTheOne (line 37)
  In OneLevelAboveWhatImLookingFor (line 465)
  ...