Why do I receive an error message when exporting a figure to PDF format in MATLAB?

5 次查看(过去 30 天)
When I export the figure to a PDF format using the PRINT command or using the Export Setup, I receive the error messages:
error using print
error using /private/ghostscript
problem converting post script.

采纳的回答

MathWorks Support Team
This occurs when the SHELL environment variable is not defined.
To resolve this issue, please define the MATLAB_SHELL environment variable, for instance:
setenv MATLAB_SHELL /bin/sh

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scope Variables and Generate Names 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by