| MATLAB Function Reference | ![]() |
As an alternative to auread, use the Import Wizard. To activate the Import Wizard, select Import data from the File menu.
y = auread('aufile')
[y,Fs,bits] = auread('aufile')
[...] = auread('aufile',N)
[...] = auread('aufile',[N1 N2])
siz = auread('aufile','size')
y = auread('aufile') loads a sound file specified by the string aufile, returning the sampled data in y. The .au extension is appended if no extension is given. Amplitude values are in the range [-1,+1]. auread supports multichannel data in the following formats:
8-bit mu-law
8-, 16-, and 32-bit linear
Floating-point
[y,Fs,bits] = auread('aufile') returns the sample rate (Fs) in Hertz and the number of bits per sample (bits) used to encode the data in the file.
[...] = auread('aufile',N) returns only the first N samples from each channel in the file.
[...] = auread('aufile',[N1 N2]) returns only samples N1 through N2 from each channel in the file.
siz = auread('aufile','size') returns the size of the audio data contained in the file in place of the actual audio data, returning the vector siz = [samples channels].
![]() | aufinfo | auwrite | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |