Navigation

Operators and Keywords

Function List:

C++ API

what.m File Reference


Functions

 elseif (isempty(strfind(d, filesep()))) p
 if (status!=1) error("could not find the file or path %s"
 if (strcmp(n,".")||strcmp(n,"..")) continue
 if (strcmp(e,".m")) w.m
 elseif (strcmp(e, mexext())) w.mex
 elseif (strcmp(e,".oct")) w.oct
 elseif (strcmp(e,".mat")) w.mat
 elseif (strcmp(n(1),"@")) w.classes
endif endif endfor if (nargout==0) __display_filenames__("M-files in directory"
 __display_filenames__ ("\nMEX-files in directory", w.path, w.mex)
 __display_filenames__ ("\nOCT-files in directory", w.path, w.oct)
 __display_filenames__ ("\nMAT-files in directory", w.path, w.mat)
 __display_filenames__ ("\nClasses in directory", w.path, w.classes)

Variables

function ret
 d = p{find (cellfun (@(x) ! isempty (strfind (x, d)), p))(end)}
 else [status, msg, msgid] = fileattrib (d)
endif endif files = dir (d)
path = d
m = cell (0, 1)
mex = cell (0, 1)
oct = cell (0, 1)
mat = cell (0, 1)
mdl = cell (0, 1)
p = cell (0, 1)
classes = cell (0, 1)
for i

Function Documentation

__display_filenames__ ( "\nClasses in directory ,
w.  path,
w.  classes 
)

__display_filenames__ ( "\nMAT-files in directory ,
w.  path,
w.  mat 
)

__display_filenames__ ( "\nOCT-files in directory ,
w.  path,
w.  oct 
)

__display_filenames__ ( "\nMEX-files in directory ,
w.  path,
w.  mex 
)

elseif ( strcmp(n(1),"@")   ) 

elseif ( strcmp(e,".mat")   ) 

elseif ( strcmp(e,".oct")   ) 

elseif ( strcmp(e, mexext())   ) 

elseif ( isempty(strfind(d, filesep()))   ) 

endif endif endfor if ( nargout  = = 0  ) 

if ( strcmp(e,".m")   ) 

if ( strcmp(n,".")||strcmp(n,"..")   ) 

if ( status!  = 1  ) 


Variable Documentation

w classes = cell (0, 1)

else d = p{find (cellfun (@(x) ! isempty (strfind (x, d)), p))(end)}

else[dummy, f, e] = fileattrib (d)

for i

Initial value:

 1 : length (files)
    n = files(i).name

endif endif endfor w w m = cell (0, 1)

w mat = cell (0, 1)

w mdl = cell (0, 1)

w mex = cell (0, 1)

w oct = cell (0, 1)

w p = cell (0, 1)

endif endif endfor w path = d

Initial value:

 what (d)

  if (nargin == 0)
    d = pwd ()