Append not valid for exportgraphics

66 visualizzazioni (ultimi 30 giorni)
user86753
user86753 il 16 Dic 2021
Commentato: Nicole009 il 31 Gen 2024
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 Commento
user86753
user86753 il 16 Dic 2021
The referenced example says that this functionality was introduced in 2020a but it appears to only work in R2021b.

Accedi per commentare.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by