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!