|MATLAB Function Reference|
Display function call stack
As an alternative to the
dbstack function, you can view the Stack field in the Editor/Debugger toolbar.
displays the line numbers and M-file names of the function calls that led to the current breakpoint, listed in the order in which they were executed. The line number of the most recently executed function call (at which the current breakpoint occurred) is listed first, followed by its calling function, which is followed by its calling function, and so on, until the topmost M-file function is reached.
[ST,I] = dbstack
returns the stack trace information in an
ST with the fields
||Function line number
The current workspace index is returned in