graphics/private/name errors when printing matlab plots
April 22nd, 2007 by Lawrence David
after upgrading to matlab 7.0, i started getting the following error messages when saving figures:
>> saveas(gcf,’me.jpg’,'jpg’);
??? Error using ==> print
Error using ==> graphics/private/name
Cannot create output file ‘me.jpg’Error in ==> saveas at 140
print( h, name, ['-d' dev{i}] )
the solution: write full filenames in saveas:
>> saveas(gcf,’/Users/me/me.jpg’,'jpg’);
Thanks a lot. This was very helpful.. Why dont they have bug in matlabcentral ?