Why do I get the following error when using the command PRINT to export figures in *.pcx, *.pbm, *.pgm, or *.ppm format in MATLAB 6.0 (R12.0)?
figureplot(1:10)print -dppm figure.ppm
??? Error using ==> print Error using ==> D:\MATLABR12\toolbox\matlab\graphics\private\ghostscript Ghostscript could not create 'figure.ppm'.
In some cases I have also received a segmentation violation (stack trace) or one of the following errors:
Problem using postscript Ghostscript returned error Undefined filename Last OS error: No such file or directory, Error in saveas.m.
Best Answer