MATLAB Function Reference Previous page   Next Page
dbtype

List M-file with line numbers

Graphical Interface

As an alternative to the dbtype function, you can see an M-file with line numbers by opening it in the Editor/Debugger.

Syntax

Description

The dbtype command is used to list an M-file function with line numbers to aid the user in setting breakpoints.

dbtype mfile displays the contents of the specified M-file function with a line number preceding each line. mfile must be the full pathname of an M-file function or a MATLAB relative partial pathname.

dbtype mfile start:end displays the portion of the M-file specified by a range of line numbers from start to end.

You cannot use dbtype for built-in functions.

Examples

To see only the input and output arguments for a function, that is, the first line of the M-file, type

For example,

returns

See Also

dbclear, dbcont, dbdown, dbquit, dbstack, dbstatus, dbstep, dbstop, dbup, partialpath


Previous page  dbstop dbup Next page

© 1994-2005 The MathWorks, Inc.