How to save file as pdf?

3 Ansichten (letzte 30 Tage)
sam plant
sam plant am 13 Dez. 2018
Bearbeitet: YT am 13 Dez. 2018
imagesc(x,y,img), colorbar, %color plot
objectiveoutput = saveas(gcf,'objective.pdf'); %saving image as pdf
The above is a plot i wish to save however I am receiving the error that there is too many outputs.
Any help?

Akzeptierte Antwort

madhan ravi
madhan ravi am 13 Dez. 2018
Bearbeitet: madhan ravi am 13 Dez. 2018
saveas(gcf,'objective.pdf') % without objectiveoutput =

Weitere Antworten (1)

YT
YT am 13 Dez. 2018
Bearbeitet: YT am 13 Dez. 2018
Well I don't think you can call saveas with an output argument which is why it gave you the error (see saveas documentation here). Just remove it and it will probably be fine
saveas(gcf,'objective.pdf');

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by