[Master Index]
[Index for /tools/hpmatlab/toolbox/matlab/sounds]
wavread
(/tools/hpmatlab/toolbox/matlab/sounds/wavread.m)
Function Synopsis
[y,Fs,Format]=wavread(wavefile)
Help text
WAVREAD Load Microsoft Windows 3.1 .WAV format sound files.
[y]=WAVREAD(wavefile) loads a .WAV format file specified by "wavefile",
returning the sampled data in variable "y". The .WAV extension
in the filename is optional.
[y,Fs]=WAVREAD(wavefile) loads a .WAV format file specified by
"wavefile", returning the sampled data in variable "y" and the
sample rate in variable "Fs".
[y,Fs,Format]=WAVREAD(wavefile) loads a .WAV format file specified by
"wavefile",returning the sampled data in variable "y", the sample
rate in variable "Fs", and the .WAV file format information in
variable "Format". The format information is returned as a 6 element
vector with the following order:
Format(1) Data format (always PCM)
Format(2) Number of channels
Format(3) Sample Rate (Fs)
Format(4) Average bytes per second (sampled)
Format(5) Block alignment of data
Format(6) Bits per sample
Note: WAVREAD currently supports only 8-bit single channel data.
See also WAVWRITE.
Cross-Reference Information
This function calls
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- input /tools/hpmatlab/toolbox/matlab/lang/input.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- which /tools/hpmatlab/toolbox/matlab/general/which.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON