Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!g1g2000pra.googlegroups.com!not-for-mail
From: Nathan <ngreco32@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: saveas error
Date: Fri, 20 Nov 2009 15:48:41 -0800 (PST)
Organization: http://groups.google.com
Lines: 30
Message-ID: <88ec2343-f4ed-48e8-9e48-a5b40f840f29@g1g2000pra.googlegroups.com>
References: <he79kj$pji$1@fred.mathworks.com>
NNTP-Posting-Host: 198.206.219.34
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1258760922 24239 127.0.0.1 (20 Nov 2009 23:48:42 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 20 Nov 2009 23:48:42 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: g1g2000pra.googlegroups.com; posting-host=198.206.219.34; 
	posting-account=_KeVcAoAAAB7j3xn35ujaQ0BoQhuzwJP
User-Agent: G2/1.0
X-HTTP-Via: 1.1 wwwproxy-son-ca-02.ca.sandia.gov:80 (squid/2.5.STABLE14)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) 
	Gecko/20091102 Firefox/3.5.5,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:586806


On Nov 20, 3:44 pm, "Priya " <ramst...@gmail.com> wrote:
> 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?  
>
> Thank you!

Dunno. It worked for me (Matlab r2007b, r2009a, and r2009b)

Strange.

-Nathan