23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

dbstack<br />

2dbstack<br />

Purpose Display function call stack<br />

Graphical<br />

Interface<br />

Syntax dbstack<br />

[ST,I] = dbstack<br />

2-386<br />

As an alternative to the dbstack function, you can use the Stack field in the<br />

Editor/Debugger toolbar.<br />

Description dbstack displays the line numbers and M-file names of the function calls that<br />

led to the current breakpoint, listed in the order in which they were executed.<br />

The line number of the most recently executed function call (at which the<br />

current breakpoint occurred) is listed first, followed by its calling function,<br />

which is followed by its calling function, and so on, until the topmost M-file<br />

function is reached.<br />

Examples dbstack<br />

[ST,I] = dbstack returns the stack trace information in an m-by-1 structure<br />

ST with the fields:<br />

name <strong>Function</strong> name<br />

line <strong>Function</strong> line number<br />

The current workspace index is returned in I.<br />

In /usr/local/matlab/toolbox/matlab/cond.m at line 13<br />

In test1.m at line 2<br />

In test.m at line 3<br />

See Also dbclear, dbcont, dbdown, dbquit, dbstatus, dbstep, dbstop, dbtype, dbup

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!