Append not valid for exportgraphics

55 次查看(过去 30 天)
I am unable to execute this example for appending plots to a .pdf file. Is Append no longer a valid option?
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)
Error using exportgraphics
Illegal option 'append' given.
  1 个评论
user86753
user86753 2021-12-16
The referenced example says that this functionality was introduced in 2020a but it appears to only work in R2021b.

请先登录,再进行评论。

采纳的回答

Richard Quist
Richard Quist 2021-12-17
The exportgraphics function was added in R2020a, but the append option was introduced in R2021b.
  3 个评论
Voss
Voss 2024-1-31
@Nicole009: From the documentation for exportgraphics, Append parameter:
"This option supports PDF and GIF files only."
Nicole009
Nicole009 2024-1-31
Ohhh. I read "pdf" as "png" like 25 times. Thanks.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by