Is it possible to print two consecutive figures to the same PDF document?
조회 수: 10 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2010년 10월 15일
댓글: Nikhil Sapre
2022년 3월 15일
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!