Matlab, saving the plot.


by MaxManus
Tags: matlab, plot, saving
MaxManus
MaxManus is offline
#1
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 Phys.org
Better thermal-imaging lens from waste sulfur
Hackathon team's GoogolPlex gives Siri extra powers
Bright points in Sun's atmosphere mark patterns deep in its interior
MATLABdude
MATLABdude is offline
#2
Mar5-09, 02:52 AM
Sci Advisor
P: 1,724
Take a look through the pertinent MATLAB documentation page:
http://www.mathworks.com/access/help...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
MaxManus is offline
#3
Mar5-09, 04:11 AM
P: 297
Thanks.


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