Functions | |
function | rundemos (directory) if(nargin |
elseif (nargin==1) if(is_absolute_filename(directory)) dirs | |
if (!isempty(fullname)) dirs | |
else | error ("rundemos: expecting argument to be a directory name") |
endif endif else | print_usage () |
run_all_demos (d) | |
endfor endfunction function | run_all_demos (directory) dirinfo |
if (length(f) > 2 &&strcmp(f((end-1):end),".m")) f | |
if (has_demos(f)) demo(f) | |
Variables | |
else | fullname = find_dir_in_path (directory) |
endif for | i |
flist = {dirinfo.name} |
elseif | ( | nargin | = =1 |
) |
if | ( | has_demos(f) | ) |
if | ( | length(f) | , | |
2 && | strcmpf((end-1):end),".m" | |||
) |
if | ( | ! | isemptyfullname | ) |
endfor endfunction function run_all_demos | ( | directory | ) |
run_all_demos | ( | d | ) |
flist = {dirinfo.name} |