type List M-file.
type lists the ascii file called ‘’.
type foo lists the ascii file called ‘foo.m’.

If files called foo and foo.m both exist, then
type foo lists the file ‘foo’, and
type foo.m list the file ‘foo.m’.

type FILENAME lists the contents of the file given a full pathname
or a MATLABPATH relative partial pathname (see PARTIALPATH).

See also dbtype, which, help, partialpath.

Back to top button