Navigation

Operators and Keywords

Function List:

C++ API

doc.m File Reference


Functions

 if (nargin==1) if(ischar(fname)) ftype
else error ("doc: expecting argument to be a character string")
endif if (ftype==2||ftype==3) ffile
endif if (isempty(ffile)) info_dir
 if (err< 0) info_file_name
 if (have_fname) status
endif if (!(have_fname &&status==0)) status
 if (status==127) warning("unable to find info program `%s'"
 info_program ())
endif endif if (nargout > 0) retval
endif else print_usage ()
endif endfunction!test if exist (info_file())!

Variables

function retval
endif else fname = ""
else ffile = ""
else info_dir = fileparts (ffile)
endif info_file_name = fullfile (info_dir, "doc.info")
endif cmd
 have_fname = ! isempty (fname)

Function Documentation

else error ( "doc: expecting argument to be a character string  ) 

endif endfunction !test if exist ( info_file()   ) 

endif endif if ( nargout  ,
 
)

if ( status  = = 127  ) 

endif if ( have_fname &&status==0  ) 

if ( have_fname   ) 

if (  ) 

endif if ( isempty(ffile  ) 

endif if ( ftype  = =2||ftype==3  ) 

if ( nargin  = =1  ) 

info_program (  ) 

endif else print_usage (  ) 


Variable Documentation

Initial value:

 sprintf ("\"%s\" --file \"%s\" --directory \"%s\"",
                   info_program (), info_file_name, info_dir)

else ffile = ""

have_fname = ! isempty (fname)

else info_dir = fileparts (ffile)

endif info_file_name = fullfile (info_dir, "doc.info")

function retval

Initial value:

 doc (fname)

  if (nargin == 0 || nargin == 1)

    ftype = 0