mixing string name and number,is my commmand correct??
显示 更早的评论
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 ?
采纳的回答
更多回答(2 个)
Claude Porlier
2014-10-17
Try using this !
for i=1:100
delete(strcat('filename',num2str(i)))
end
Cheers !
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!