Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Extract filenames and ext. from cell array of strings
fns = {'/usr/local/foo.lib', '~/baz.m', 'home/rms/eula.txt', 'bar.m'}; fns = repmat(fns,[1 1e5/4]); %creating 1e5 sample files tic cellfun (@(fn, s) fn(s+1:end), fns, num2cell (rindex (fns, filesep())), "UniformOutput", false); Andy_sol=toc tic regexprep(fns, '.*/', ''); Usama_sol = toc
run
|
edit
|
history
|
help
0
Example Plot for MTE111 Lab Reports
demo1.m
Curve Pattern
demo1
ptransp
Delsq
p2
1234
MATRIX MANIPULATIONS
Delsq