[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52585] type cannot list the source of a funct
[Octave-bug-tracker] [bug #52585] type cannot list the source of a function in a namespace
Thu, 7 Dec 2017 11:25:54 -0500 (EST)
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Follow-up Comment #3, bug #52585 (project octave):
>> help type
type List program file.
type foo.bar lists the ascii file called 'foo.bar'.
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 lists the file 'foo.m'.
type PATHNAME/FUN lists the contents of FUN (or FUN.m)
given a full pathname or a MATLABPATH relative partial
pathname (see PARTIALPATH).
>> help partialpath
partialpath Partial pathnames.
A partial pathname is a MATLABPATH relative pathname that is used to
locate private and method files which are usually hidden or to
restrict the search for files when more than one file with the given
A partial pathname contains the last component, or last several
components, of the full pathname separated by '/'. For example,
"matfun/trace", "private/children", "inline/formula", and
"demos/clown.mat" are valid partial pathnames. Specifying the
"@" in method directory names is optional so "funfun/inline/formula"
is also a valid partial pathname.
Many commands accept partial pathnames instead of a full pathname.
Here's a (partial) list of such commands
HELP, TYPE, LOAD, EXIST, WHAT, WHICH, EDIT,
DBTYPE, DBSTOP, and DBCLEAR, FOPEN.
Partial pathnames make it easy to find toolbox or MATLAB relative
files on your path in a portable way that is independent of
where MATLAB is installed.
This also seems relevant:
Reply to this item at:
Message sent via/by Savannah