Register to reply

Matlab, saving the plot.

by MaxManus
Tags: matlab, plot, saving
Share this thread:
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
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
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).
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