Re: Printing to file with more than one page
- From: Richard Quist <rquist_nospam@xxxxxxxxxxxxx>
- Date: Tue, 02 Oct 2007 14:14:18 -0400
beda meda wrote:
Hi,MATLAB will not generate multipage PDF files or put multiple figures on a single page
I have this problem: I have 27 figures and I need to print them to .pdf file, 9 figures on 3 pages. I know, how to print on one page with command "print", but I can't find, how to print on more pages. Can anyone help me?
Thanks a lot!
P.S.: sorry for my english
You could use the subplot command to put multiple plots on one figure. See the documentation for help on this command
MATLAB will only print multiple pages to a file using one of the postscript devices (-dps, -dpsc, -dps2, -dpsc2). To do so you need to use the -append option with the print command
% create some figures, storing handle of each in the figs
figs(1) = figure;
plot(rand(20))
title 'page 1')
figs(2) = figure
plot(rand(10))
title 'page 2')
% loop over figs, printing each one to
% a separate page in the output file
for idx = 1:length(figs)
print(figs(idx), '-append', '-dpsc2', 'myReport.ps');
end
This will result in each figure being on it's own page in the postscript file
--
Richard Quist
Software Developer
The MathWorks, Inc.
.
- Follow-Ups:
- Re: Printing to file with more than one page
- From: beda meda
- Re: Printing to file with more than one page
- References:
- Printing to file with more than one page
- From: beda meda
- Printing to file with more than one page
- Prev by Date: Re: How to determine the length of a spline curve
- Next by Date: Re: calcuating goodness of fit in the statistical tool box
- Previous by thread: Printing to file with more than one page
- Next by thread: Re: Printing to file with more than one page
- Index(es):
Relevant Pages
|