tiff - Automatic saving a figure as an image file in Matlab -


i'm creating 49 figures in matlab, created automatically 1 after other. want them automatically saved .tif or .jpg images names corresponding figure number. can it? , if so,how?

the code creation of figures is:

for num_picture=0:48   ...   figure (num_picture+1)   imshow (screen_im) end 

the ... part calculations of screen_im are.

i want images in order create movie them, if there way can create movie automatically form matlab, also, better.

you can save current figure file print of saveas command generating filename using loop counter:

saveas(sprintf('img%d.tif',num_picture)) 

or

 print('-dtiff','-r300',sprintf('img%d.tif',num_picture)) 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -