List text file with line numbers
dbtype filename start:end
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.
You cannot use dbtype for built-in functions.
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
dbtype addpath 1
1 function oldpath = addpath(varargin)