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?

 채택된 답변

Wayne King
Wayne King 2012년 5월 25일

1 개 추천

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.

추가 답변 (1개)

Daniel Shub
Daniel Shub 2012년 5월 25일

0 개 추천

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

댓글 수: 1

Susan
Susan 2012년 5월 26일
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

질문:

2012년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by