Is it possible to print two consecutive figures to the same PDF document?
19 次查看(过去 30 天)
显示 更早的评论
I would like to print two or more consecutive figures to the same PDF document.
采纳的回答
MathWorks Support Team
2021-11-23
编辑:MathWorks Support Team
2021-12-30
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.
0 个评论
更多回答(1 个)
Nikhil Sapre
2021-11-10
1 个评论
Nikhil Sapre
2022-3-15
yes it is, for PDF file format starting 2021b, and GIF format in 2022a.
What version of MATLAB are you running?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!