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
Post a Comment