Matlab, saving the plot.

by MaxManus
Tags: matlab, plot, saving
MaxManus is offline
Mar4-09, 09:16 AM
P: 297
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.'
Phys.Org News Partner Science news on
Cougars' diverse diet helped them survive the Pleistocene mass extinction
Cyber risks can cause disruption on scale of 2008 crisis, study says
Mantis shrimp stronger than airplanes
MATLABdude is offline
Mar5-09, 02:52 AM
Sci Advisor
P: 1,724
Take a look through the pertinent MATLAB documentation page:

(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 is offline
Mar5-09, 04:11 AM
P: 297

Register to reply

Related Discussions
MATLAB- for loop saving results of 3 variables Math & Science Software 3
3d plot in matlab General Engineering 6
Matlab: How to plot 'text' Math & Science Software 1
Matlab file saving. Math & Science Software 3
Matlab: Saving and Running M-files Math & Science Software 3