我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

dbtype

List text file with line numbers

Syntax

dbtype filename
dbtype filename start:end

Description

The dbtype command is used to list a text file with line numbers, which is helpful when setting breakpoints in a MATLAB® code file with dbstop.

dbtype filename displays the contents of the specified text file, with the line number preceding each line. filename must be the full path name of a file, or a MATLAB relative partial path.

dbtype filename start:end displays the portion of the 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 file, use the syntax

dbtype filename 1

For example,

dbtype addpath 1

returns

1     function oldpath = addpath(varargin)
Was this topic helpful?