« Return to Thread: auload help

Re: auload help

by Ben Abbott :: Rate this Message:

Reply to Author | View in Thread


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

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

 « Return to Thread: auload help

LightInTheBox - Buy quality products at wholesale price