Friday, July 31, 2009

dbtype

List M-file with line numbers

Syntax

  • dbtype function
    dbtype function start:end

Description

dbtype function displays the contents of the specified M-file function with line numbers preceding each line. function must be the name of an M-file function or a MATLABPATH relative partial pathname.

dbtype function start:end displays the portion of the file specified by a range of line numbers.

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

  • dtype function 1

For example,

  • dbtype fileparts 1

returns

  • 1     function [path, fname, extension,version] = fileparts(name)

No comments:

Post a Comment