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) |
w | path = d |
w | m = cell (0, 1) |
w | mex = cell (0, 1) |
w | oct = cell (0, 1) |
w | mat = cell (0, 1) |
w | mdl = cell (0, 1) |
w | p = cell (0, 1) |
w | classes = cell (0, 1) |
for | i |
elseif | ( | strcmp(n(1),"@") | ) |
elseif | ( | strcmp(e,".mat") | ) |
elseif | ( | strcmp(e,".oct") | ) |
elseif | ( | strcmp(e, mexext()) | ) |
elseif | ( | isempty(strfind(d, filesep())) | ) |
if | ( | strcmp(e,".m") | ) |
if | ( | strcmp(n,".")||strcmp(n,"..") | ) |
if | ( | status! | = 1 |
) |
w classes = cell (0, 1) |
else d = p{find (cellfun (@(x) ! isempty (strfind (x, d)), p))(end)} |
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) |