필터 지우기
필터 지우기

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!
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 7월 12일
This might be related to a different report:
http://www.mathworks.com/matlabcentral/answers/11467-matlab-crashes-when-i-use-plot-command

댓글을 달려면 로그인하십시오.

답변 (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