How to save file as pdf?

21 ビュー (過去 30 日間)
sam plant
sam plant 2018 年 12 月 13 日
編集済み: YT 2018 年 12 月 13 日
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?

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 13 日
編集済み: madhan ravi 2018 年 12 月 13 日
saveas(gcf,'objective.pdf') % without objectiveoutput =

その他の回答 (1 件)

YT
YT 2018 年 12 月 13 日
編集済み: YT 2018 年 12 月 13 日
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');

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by