I find that when i have created a figure using matlab on my mac, I sometimes get an image type that I didn't want. Today I wanted a .jpg but got a .eps instead. Furthermore a lot of the images I try to save don't open properly afterwards. So to save myself from the agony I decided to find out the command line for saving figures hoping that it would solve my problems. Sure enough using the command line rocks once again. Here is the command for saving a figure.
saveas(figure(#),'filename','type')
There is a whole list of types at this link, the ones I use most are jpg, tif, ai, and eps.
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/saveas.html
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment