I have much code that prints generated figures to Postscript files using the following syntax:
print('-dpsc2', '-painters', '-noui', '-append', filename);
However, when there is no file in the directory to append to with the same filename, I receive the following warning/error:
Warning: File not found or permission denied. > In D:\Applications\MATLAB6p5p1\toolbox\matlab\general\@char\delete.m at line 35 In D:\Applications\MATLAB6p5p1\toolbox\matlab\graphics\private\render.m at line 110 In D:\Applications\MATLAB6p5p1\toolbox\matlab\graphics\print.m at line 238 ??? Error using ==> print Error using ==> print Error using ==> d:/applications/matlab6p5p1/toolbox/matlab/graphics/private/render Error using ==> hardcopy Can not read PostScript file.
Using the print function with the "-append" option should create a new file if one does not exist, and operates correctly in this manner in MATLAB 5.3 (R11). Why does this occur?
Best Answer