Borrar filtros
Borrar filtros

How to save file as pdf?

5 visualizaciones (últimos 30 días)
sam plant
sam plant el 13 de Dic. de 2018
Editada: YT el 13 de Dic. de 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?

Respuesta aceptada

madhan ravi
madhan ravi el 13 de Dic. de 2018
Editada: madhan ravi el 13 de Dic. de 2018
saveas(gcf,'objective.pdf') % without objectiveoutput =

Más respuestas (1)

YT
YT el 13 de Dic. de 2018
Editada: YT el 13 de Dic. de 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');

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by