How to select all .wav files from a directory?
27 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have like 125 .wav files in a directory I want to read all of them and perform some function. I have tried a lot but was unsuccessful. I had like this A = {filepathStr='path'}; for i= 1:filelength, [data,fs,nbits] = audioread(A{i});
Can some help me please.
Thanks in advance.
0 件のコメント
採用された回答
Ahmet Cecen
2014 年 8 月 14 日
編集済み: Ahmet Cecen
2014 年 8 月 14 日
files = dir('*.wav');
audio = cell(1,125);
for k = 1:125
audio{k} = audioread(files(k).name);
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!