Newbie, Mac OS 10.6.8: problem with ghostscript--can't use "saveas" to save plots as pdfs. Alternative?

2 次查看(过去 30 天)
I am a MATLAB newbie using a Mac (OS 10.6.8).
Last week I wrote an m-file for making plots and saving the results as pdfs. For saving the pdfs, I used:
saveas(gcf,saveFigTo1, 'pdf'); (saveFigTo1 is the name/path of the figure).
It worked!
This week, I tried running the m-file again and I received an error that seems to be related to ghostscript:
??? Error using ==> print at 325
Problem converting PostScript. System returned error: -1.Failed to convert to output format; Ghostscript status: -100.**** Unable to open the initial device, quitting.
Error in ==> saveas at 155
print( h, name, ['-d' dev{i}] )
Error in ==> myMFile at 1221
saveas(gcf,saveFigTo1, 'pdf')
I don't know why this happened (might be related to an operating system upgrade), but I can't fix it. I have found a Mac version of ghostscript, but installing it has not fixed the problem.
So my question is, does anyone know of an alternative to using saveas for saving my figures as pdfs? Or does anyone have any insight into what my ghostscript problem might be? I would be very grateful for any advice!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by