Feed on
Posts
Comments

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’);


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

One Response to “graphics/private/name errors when printing matlab plots”

  1. on 16 Dec 2009 at 2:42 am Sourangshu Bhattacharya

    Thanks a lot. This was very helpful.. Why dont they have bug in matlabcentral ?

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.