How to select all .wav files from a directory?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rajith
am 14 Aug. 2014
Bearbeitet: Rajith
am 14 Aug. 2014
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 Kommentare
Akzeptierte Antwort
Ahmet Cecen
am 14 Aug. 2014
Bearbeitet: Ahmet Cecen
am 14 Aug. 2014
files = dir('*.wav');
audio = cell(1,125);
for k = 1:125
audio{k} = audioread(files(k).name);
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!