Register to reply

Matlab, saving the plot.

by MaxManus
Tags: matlab, plot, saving
Share this thread:
MaxManus
#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
Scientists develop 'electronic nose' for rapid detection of C. diff infection
Why plants in the office make us more productive
Tesla Motors dealing as states play factory poker
MATLABdude
#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
#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