dbstack
call stack.
📝Syntax
dbstack
st = dbstack()
dbstack('-completenames')
st = dbstack('-completenames')
dbstack('-completenames', omit)
st = dbstack('-completenames', omit)
📥Input Arguments
Parameter Description
omit an integer value: Number of frames to omit (must be positive).
📤Output Arguments
Parameter Description
st a struct
📄Description

dbstack displays the file names and line numbers of the function calls.

dbstack('-completenames') displays the full file names.

💡Examples
Creates a myfun.m and calls it.
function myfun(x)
dbstack();
end
🔗See Also
which
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub