How to save file as pdf?
7 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
madhan ravi
2018 年 12 月 13 日
編集済み: madhan ravi
2018 年 12 月 13 日
saveas(gcf,'objective.pdf') % without objectiveoutput =
0 件のコメント
その他の回答 (1 件)
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');
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!