PDA

View Full Version : Matlab, saving the plot.


MaxManus
Mar4-09, 09:16 AM
Hey, I am making some plots in a loop and I want to save the different plots in different files.

I am new to Matlab so I don't know what to do, I tried the command

print('-dpdf','plot n = %s'n)

,but that was an 'Unexpected MATLAB expression.'

MATLABdude
Mar5-09, 02:52 AM
Take a look through the pertinent MATLAB documentation page:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/print.html

(Exporting to various formats is about half-way through).

Note that you should probably resize the plot (to, say, Letter or A4 size) prior to exporting, otherwise things may look rather pixellated (though there is an option for vector output).

MaxManus
Mar5-09, 04:11 AM
Thanks.