Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: character matrix
Date: Thu, 15 May 2008 21:36:02 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 19
Message-ID: <g0iac1$8pp$1@fred.mathworks.com>
References: <28364413.1210885931460.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210887362 9017 172.30.248.37 (15 May 2008 21:36:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 15 May 2008 21:36:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:468712


Clem:
<SNIP string-creation...

one of the many solutions

     tmpl='asc_%4.4d.dat\n';
     r=strread(sprintf(tmpl,1600:100:2000),'%s');
     r=char(r)
%{
     r=
     asc_1600.dat
     asc_1700.dat
     asc_1800.dat
     asc_1900.dat
     asc_2000.dat
%}

us