フィルターのクリア

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 Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by