Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v8g2000vbe.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Invalid filename when saving diagram. But why?
Date: Fri, 4 Nov 2011 13:04:28 -0700 (PDT)
Organization: http://groups.google.com
Lines: 24
Message-ID: <29c5d98c-6a44-41a7-99ef-39959c6f0d3b@v8g2000vbe.googlegroups.com>
References: <j91dnm$pi0$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 184.57.134.178
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1320438814 28120 127.0.0.1 (4 Nov 2011 20:33:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 4 Nov 2011 20:33:34 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v8g2000vbe.googlegroups.com; posting-host=184.57.134.178; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:748315

On Nov 4, 3:17 pm, "Ulrik Nash" <u...@sam.sdu.dk> wrote:
> Hi,
>
> What am I doing wrong here?
>
> I have the following rather long name (which is created from a list of variable values):
>
> diagram_name =
> 'BUYERS_SCATTER_INDUSTRY_PERIOD_100_10_1_50_50_0_05_1_10000_1000_1000_1000_1000_900_500_50_50_1000_1000'
>
> and I wish to save a diagram using the following:
>
> saveas(gcf,diagram_name,'tiff')
>
> but I get the error message:
>
> "Invalid filename."

------------------------------------------------------------------
Copied and pasted your code and it ran just fine with R2011a.  Saved
the figure just fine.  Copy the exact error message from the command
window, not just some paraphrased thing like you did so far.