Prev: Using fplot(?)
Next: come and join www.pakdub.com where u can find friends, classifieds, games, music albums, events, blogs, chatrooms, video songs and lot more.... for free
From: Joshua Thompson on 29 Jan 2010 12:26 "Steven Lord" <slord(a)mathworks.com> wrote in message <hemvrt$g04$1(a)fred.mathworks.com>... > > "Priya " <ramstuff(a)gmail.com> wrote in message > news:he79kj$pji$1(a)fred.mathworks.com... > > Usually I am able to save images in matlab. However something unusual > > happened today, which I have not been able to figure out. > > > > Here is in a example: > > > >>> plot(1:10) > >>> saveas(gcf, 'test.tiff') > > ??? Error: File: printopt.m Line: 1 Column: 25 > > The input character is not valid in MATLAB statements or expressions. > > > > Error in ==> printjob at 70 > > [ pj.PrintCmd, pj.DefaultDevice ] = printopt; %Defaults > > > > Error in ==> print at 166 > > pj = printjob; > > > > Error in ==> saveas at 159 > > print( h, name, ['-d' dev{i}] ) > > > > > > Can someone please help me figure out what is wrong? > > What does "which -all printopt" show? > > Edit it and look at line 1, column 25. What character is in that position? > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ > I had a similar problem and found a fix. In my case it was a conflict between too many printopt.m files lying in the path. Steve Lord suggested examining "line 1, column 25" of, I assume, printopt.m. I tried this using "edit printopt.m" and saw garbage because MATLAB opened some other copy that had been installed in directory created by the MATLAB compiler. (The directory included something like "_mcr" or "_mcc") I removed these directories and the problem was solved. |