Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: saveas error
Date: Thu, 26 Nov 2009 17:36:58 -0500
Organization: The MathWorks, Inc.
Lines: 35
Message-ID: <hemvrt$g04$1@fred.mathworks.com>
References: <he79kj$pji$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1259274942 16388 172.31.44.65 (26 Nov 2009 22:35:42 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 26 Nov 2009 22:35:42 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:588172



"Priya " <ramstuff@gmail.com> wrote in message 
news:he79kj$pji$1@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@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ