octave-bug-tracker
[Top][All Lists]
Advanced

[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


From: Amro
Subject: [Octave-bug-tracker] [bug #52585] type cannot list the source of a function in a namespace
Date: Thu, 7 Dec 2017 11:25:54 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #3, bug #52585 (project octave):

In MATLAB:


>> 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
    name exists.  
 
    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:
https://www.mathworks.com/help/matlab/matlab_env/specify-file-names.html#br8pz72-1


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52585>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]