changing from wavread to audioread

조회 수: 11 (최근 30일)
Andrew Mitchell
Andrew Mitchell 2016년 2월 10일
답변: Walter Roberson 2016년 2월 10일
My colleague has written a program on an older version of Matlab which involves reading in .wav file. In the older version, this would have been handled with wavread, but in R2015b it needs to be handled with audioread. I think I've mostly sorted the changes needed, but one is catching me up.
Basically, what is the audioread equivalent to:
siz = wavread(filename, 'size'

답변 (1개)

Walter Roberson
Walter Roberson 2016년 2월 10일
You can use audioinfo and extract TotalSamples and NumChannels .
But typically you just read the entire file and take size() of the data afterwards. Not always, but that is the most common approach.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by