y = wavread('wavefile')
[y,Fs] = wavread('wavefile')
[y,Fs,format] = wavread('wavefile')
y = wavread('wavefile')
loads the .WAV file wavefile
, returning the sampled data in y
. If wavefile
does not include a file extension, the function assumes .WAV.
[y,Fs] = wavread('wavefile')
returns the sample rate Fs
.
[y,Fs,format] = wavread('wavefile')
returns the six-element vector format
, where
format(1)
is the data format. This is always the string 'PCM'
.format(2)
is the number of channels.format(3)
is the sample rate (Fs
).format(4)
is the average bytes per second (sampled).format(5)
is the block alignment of the data.format(6)
is the number of bits per sample.
wavwrite
(c) Copyright 1994 by The MathWorks, Inc.