Re: Printing to file with more than one page



beda meda wrote:
Hi,
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
MATLAB will not generate multipage PDF files or put multiple figures on a single page

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.
.



Relevant Pages

  • Re: Printing to file with more than one page
    ... You could use the subplot command to put multiple ... MATLAB will only print multiple pages to a file using one ... % loop over figs, printing each one to ...
    (comp.soft-sys.matlab)
  • Re: Printing to file with more than one page
    ... MATLAB will not generate multipage PDF files or put multiple figures on ... You could use the subplot command to put multiple plots on one ... storing handle of each in the figs ...
    (comp.soft-sys.matlab)
  • Re: Adobe Reader will not launch in XP Home Edition SP 2
    ... either use System Restore (if the problem occurred after a ... for older versions of Adobe Reader all the way back to 5.x, ... and then when trying to launch the reader by clicking on a pdf file I get ... Results of command "notepad c:\test.txt" ...
    (microsoft.public.windowsxp.general)
  • RE: Form For Crosstab Query
    ... My next step is to place the query on a continuour form, and add a command ... FROM (TimeRecords INNER JOIN Staff ON TimeRecords.StaffID = Staff.StaffID) ... I would like to add an additional column that sums the multiple of each ...
    (microsoft.public.access.forms)
  • Re: Grouping Multiple Side by Side Columns
    ... "The command can't be performed with multiple sections ... "Bob I" wrote: ... sam wrote: ...
    (microsoft.public.excel)