How to select all .wav files from a directory?
10 次查看(过去 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 I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!