dbstack
dbstack 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. In other words, 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 base workspace is reached.
dbstackIn /usr/local/matlab/toolbox/matlab/cond.m at line 13In test1.m at line 2In test.m at line 3
dbclear,dbcont,dbdown,dbstatus,dbstep,dbstop,dbtype,dbup
(c) Copyright 1994 by The MathWorks, Inc.