The "print" function is losing support for ".ps" format in a future release. Does this mean the "-append" option will no longer exist?
13 次查看(过去 30 天)
显示 更早的评论
I have a rather large body of code that uses print('outfilename','-dpsc','-append') to generate stadardized reports.
As of release 2023b I'm getting a warning:
"Warning: PostScript format 'ps' will not be supported in a future release. "
I need the "-append" option, which only works for "full page postscript files," or I need a good workaround.
Ideally, Mathworks will choose to continue supporting postscript or will add the append option to other formats.
Any suggestions for a workaround in case they don't ?
0 个评论
采纳的回答
Aiswarya
2023-11-14
Hi,
I understand that you want to use the append option with print function and according to the documentation it is only supported for PS(PostScript format) files. You want to know if there is some workaround to append figures if this support is discontinued.
You can use the 'exportgraphics' function and use the append option in it to create multipage PDF files. The following link illustrates an example for the same: https://www.mathworks.com/help/matlab/ref/exportgraphics.html#mw_a4544e80-5ff4-4859-afa2-0d4cc627bb5e
If you want to export as vector graphics (like in PostScript), set the "ContentType" attribute to "vector". You may refer to the following documentation to know more about the workaround : https://www.mathworks.com/help/matlab/ref/print.html#mw_cbc9c910-74be-4208-8a13-385ef4122b67
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!