While Saving the figure in pdf format (MATLAB 2010A)it shows an error message saying PSlevel must be 1 or 2. What should i do to have my figure in pdf? And after clicking on Exit debug mode it shows the file with the error on line 206/1063..

5 次查看(过去 30 天)
  1 个评论
Vishwanath Bailore Acharya
Can you once try saving the figure using 'hgexport' with just 2 parameters, by removing the style format as follows?
hgexport(hfig, filename);
Please update if you are facing the issue after trying the above command.

请先登录,再进行评论。

回答(1 个)

Sujay Kadam
Sujay Kadam 2022-5-26
May be this is too late, but I wonder if the following would help:
clear fig_property
fig_property.PSLevel= '1';
hgexport(gcf,'Plot.pdf',fig_property);

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by