Functions | |
if (nargs > 1) filename | |
if (strcmp(filename(end), filesep)) filename(end) | |
if (i< nargs &&strcmp(tmp(end), filesep)) tmp(end) | |
elseif (i==nargs &&strcmp(tmp, filesep)) tmp | |
endfor | elseif (nargs==1) filename |
endif else | print_usage () |
!assert (fullfile(""),"")%!assert(fullfile(fs) | |
fs | !assert (fullfile("", fs), fs)%!assert(fullfile(fs |
fs fs x | !assert (fullfile("","x"),"x")%!assert(fullfile("x" |
fs fs x x | !assert (fullfile("","x",""),"x")%!assert(fullfile("x" |
fs fs x x xfsy | !assert (fullfile("x","","y"), xfsy)%!assert(fullfile("x" |
fs fs x x xfsy xfsy | !assert (fullfile("","x","","y",""), xfsy)%!assert(fullfile(fs) |
fs fs x x xfsy xfsy fs | !assert (fullfile(fs, fs), fs)%!assert(fullfile(fs |
fs fs x x xfsy xfsy fs fsx | !assert (fullfile(fs, xfs), fsxfs)%!assert(fullfile(fsx |
Variables | |
function | filename |
nargs = numel (varargin) | |
endif for | i |
endif endfunction!shared | fs |
endif endfunction!shared | fsx |
endif endfunction!shared | xfs |
endif endfunction!shared | fsxfs |
endif endfunction!shared xfsy | !fs = filesep () |
!fsx = cstrcat (fs, "x") | |
!xfs = cstrcat ("x", fs) | |
!fsxfs = cstrcat (fs, "x", fs) | |
!xfsy = cstrcat ("x", fs, "y") | |
fs fs x x | y |
fs fs x x xfsy xfsy fs | x |
!assert | ( | fullfile("") | , | |
"" | ||||
) |
if | ( | ) |
if | ( | nargs | , | |
1 | ||||
) |
endif endfunction !shared xfsy !fs = filesep () |
!xfs = cstrcat ("x", fs) |
!xfsy = cstrcat ("x", fs, "y") |
endif endfunction !shared fsx |
endif endfunction !shared fsxfs |
nargs = numel (varargin) |
endif endfunction !shared xfs |