Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
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!
  1 Kommentar
Walter Roberson
Walter Roberson am 12 Jul. 2011
This might be related to a different report:
http://www.mathworks.com/matlabcentral/answers/11467-matlab-crashes-when-i-use-plot-command

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by