Thursday, April 15, 2010

save figure as per iteration in matlab

I wanted to save the files in jpeg format as I go...
The following helped me to save it in myplot1.jpeg format.



saveas(gcf,['myplot', num2str(iteration)], 'jpeg')
or

print(gcf, '-djpeg',['Entropy_map_',num2str(j)])

1 comment:

Anonymous said...

cheers bro. totes helped us out a heap!