strcat help
显示 更早的评论
filename=strcat('frame',num2str(i),'.jpg')
This line is within a for loop so images are created with filenames...
frame1, frame2...frame50
How can I change this line of code so that it is... frame001, frame002 ... frame050
采纳的回答
更多回答(2 个)
Micky Elias
2020-5-19
0 个投票
filename=strcat(num2str(img,'%04i'),'.jpg');
1 个评论
Walter Roberson
2020-5-19
%03i not %04i for the user question.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!