# wavread

## Purpose

Load Microsoft Windows 3.1 .WAV format sound files.

## Synopsis

    y = wavread('wavefile')
    [y,Fs] = wavread('wavefile')
    [y,Fs,format] = wavread('wavefile')

## Description

`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.
  This function currently supports only 8-bit, single channel data.

  ## See Also

      wavwrite

  (c) Copyright 1994 by The MathWorks, Inc.