Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Wavread loop: Variable filename
Date: Thu, 18 Sep 2008 10:05:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <gat94g$40m$1@fred.mathworks.com>
References: <gat6nh$c36$1@fred.mathworks.com> <gat74l$fol$1@fred.mathworks.com> <gat86d$oo6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1221732304 4118 172.30.248.37 (18 Sep 2008 10:05:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Sep 2008 10:05:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:490743


"Koos Spee" <bmx_360@hotmail.com> wrote in message <gat86d$oo6$1@fred.mathworks.com>...
> "Dave Brackett" <davebrackett@hotmail.com> wrote in message <gat74l$fol$1@fred.mathworks.com>...
> > 
> > you are missing the 0 out of the file name. include it in the string like this:
> > temp=strcat(WavName,'0',StrI)
> 
> 
> True, but that is just an error in the example I above.
> 
> The point is "strcat(WaveName, StrI)=wavread()" does not work. 

ok, splitting that line into 2 works, i.e.

    WavStored_str=strcat(WavStored,'0',StrI);
    WavStored_str=wavread(temp);