[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auload help
From: |
Ben Abbott |
Subject: |
Re: auload help |
Date: |
Fri, 09 May 2008 08:28:03 -0400 |
On May 9, 2008, at 7:55 AM, miguel olivares varela wrote:
Hi,
I'm a student and i want to create a routine "m-file" to be able to
read all the "wav" files that I have in my current directory. I
found auload to do it like this:
payload = auload("audio.wav");
save audio.mat payload
auplot(payload);
but i want to create a loop or mayba change the fonction auload i
mean in place to accept the name of the file, can accept a variable
in order to read all wav files. Does anybody knows how can i do it?
Thanks
Miguel
You can begin with
> wavfiles = dir ("*.wav")
wavfiles =
{
4x1 struct array containing the fields:
name
date
bytes
isdir
datenum
statinfo
}
You can then loop over the structure.
Ben
- auload help, miguel olivares varela, 2008/05/09
- Re: auload help,
Ben Abbott <=