You can control whether the file contains an image or vector graphics by specifying the 'ContentType' name-value pair argument. For example, save the content in the current figure as a PDF containing vector graphics.
'ContentType' — Type of content
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!