save in pdf format (figure matlab)

Good morning, everyone,
I can't save a matlab figure in pdf, here is the error message.
I use the function saveas(h,'filename.pdf');
but I have an error message, but with png format it's ok...
thank you
Have a good day

 Accepted Answer

saveas(h,'filename','pdf'); % how about this?

6 Comments

madhan ravi
madhan ravi on 23 Jul 2019
Edited: madhan ravi on 23 Jul 2019
MARCEL Claude's answer moved here:
the same error...
h=pcshow(...)
saveas(h,'filename','pdf');
MARCEL Claude's answer moved here:
YES thank you !
but how to increase the image quality?
thank
Don't keep adding answers to make a comment. Use comment on this answer instead.
Sorry , I don't have Computer Vision System Toolbox, also not sure how to improve the quality.

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!