MATLAB Answers

0

How to save file as pdf?

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?

  0 件のコメント

サインイン to comment.

2 件の回答

madhan ravi
Answer by madhan ravi
on 13 Dec 2018
Edited by madhan ravi
on 13 Dec 2018
 Accepted Answer

saveas(gcf,'objective.pdf') % without objectiveoutput =

  0 件のコメント

サインイン to comment.


YT
Answer by YT
on 13 Dec 2018
Edited by YT
on 13 Dec 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');

  0 件のコメント

サインイン to comment.



Translated by