mixing string name and number,is my commmand correct??
Show older comments
Hi All
Since I just dont remember and dont know how to search for this question
would like to know
for naming the file as :
for i=1:100
delete('filename'+num2str(i))
end
is it correct ?
Accepted Answer
More Answers (2)
Claude Porlier
on 17 Oct 2014
Try using this !
for i=1:100
delete(strcat('filename',num2str(i)))
end
Cheers !
farzad
on 17 Oct 2014
0 votes
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!