Skip to Main Content Skip to Search
Product Documentation

wavfinfo - Information about WAVE (.wav) sound file

Syntax

[m d] = wavfinfo(filename)

Description

[m d] = wavfinfo(filename) returns information about the contents of the WAVE sound file specified by the string filename. Enclose the filename input in single quotes.

m is the string 'Sound (WAV) file', if filename is a WAVE file. Otherwise, it contains an empty string ('').

d is a string that reports the number of samples in the file and the number of channels of audio data. If filename is not a WAVE file, it contains the string 'Not a WAVE file'.

See Also

audioplayer | audiorecorder | wavread | wavwrite

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS