wav format data type in matlab

Hi, I found that data was in int type in wav file, but when I input the wav file into matlab using wavread(), I found that the data was in float type. Can someone tell me why?

 Respuesta aceptada

Wayne King
Wayne King el 25 de Mayo de 2012

1 voto

You most likely did not use the format option available in wavread.m
[y,fs] = wavread(file,'native');
If omitted, this defaults to double-precision.

Más respuestas (1)

Daniel Shub
Daniel Shub el 25 de Mayo de 2012

0 votos

You should read the documentation to WAVREAD
doc wavread
You want
[Y,...]=WAVREAD(...,'native')

1 comentario

Susan
Susan el 26 de Mayo de 2012
Yes,thank you. The version of my matlab is 6.0, which doesn't support this format. I update the version to 2010, and the problem had been solved.

Iniciar sesión para comentar.

Categorías

Más información sobre Audio I/O and Waveform Generation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Mayo de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by