Error "Cannot Create Output File" When Trying to Save Figure

4 Ansichten (letzte 30 Tage)
Kelsey Ward
Kelsey Ward am 19 Jan. 2022
Beantwortet: Star Strider am 19 Jan. 2022
I am trying to save my figure to a specific path using this code. I have my path set under outputs and my directory is set to that path but it just keeps telling me "Cannot create output file."
print(gcf,'-djpeg',strcat(outputs,'/','lengths'));

Antworten (1)

Star Strider
Star Strider am 19 Jan. 2022
I don’t often use print however it appears that the first argument needs to be the file name to print to. The argument order is important in MATLAB, except for name-value pair arguments.
.

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by