Is it possible to print two consecutive figures to the same PDF document?

59 ビュー (過去 30 日間)
I would like to print two or more consecutive figures to the same PDF document.

採用された回答

MathWorks Support Team
MathWorks Support Team 2021 年 11 月 23 日
編集済み: MathWorks Support Team 2021 年 12 月 30 日 13:07
It is not possible to print two consecutive figures to the same PDF document using the APPEND option with the PRINT command.
As a workaround, you can print multiple figures to a single PostScript (PS) file with the -append option and then convert the final document to PDF using a PS-to-PDF utility. For more information on how to use the -append option, consult the documentation for the PRINT command, which is available at the following location:
The above workaround may lead to loss in sharpness of the image exported.
Another workaround is to  use the “export_fig” function available on MATLAB File Exchange with “-append” option.
Example usage of “export_fig”:
>> export_fig output.pdf –append –r300
Link to download “export_fig” :
Please note that The MathWorks does not guarantee or warrant the use or content of File Exchange submissions. Any questions, issues, or complaints should be directed to the contributing author. 

その他の回答 (1 件)

Nikhil Sapre
Nikhil Sapre 2021 年 11 月 10 日
Release 2021b now supports exporting to a multipage pdf using the exportgraphics function
  1 件のコメント
user86753
user86753 2021 年 12 月 15 日
Is 'Append' still a valid input?
I'm getting the following error.
Error using exportgraphics
Illegal option 'append' given.
plot([0 0.3 0.1 0.6 0.4 1]);
ax = gca;
exportgraphics(ax,outfilename)
bar(1:10)
exportgraphics(ax,outfilename,'Append',true)
Error in Untitled4 (line 11)
exportgraphics(ax,outfilename,'append',true)

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by