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

 Risposta accettata

Jan
Jan il 20 Ago 2011

0 voti

filename = sprintf('frame%03d.jpg', i)

Più risposte (2)

Tag

Richiesto:

il 19 Ago 2011

Commentato:

il 19 Mag 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by