MATLAB: How to select one by one .wav files from a directory

can some help me please.signal processingwav. files

hi
I have like 150000 .wav files in a directory I want to read one by one of them and summing them with other sounds (*wav) . I have tried a lot but was unsuccessful.
Can some help me please.
thanks

Best Answer

projectdir = '/Users/Snorky/music';
dirinfo = dir( fullfile(projectdir, '*.wav') );
numfiles = length(dirinfo);
for K = 1 : numfiles
thisfile = fullfile(projectdir, dirinfo(K).name );
thisdata = wavread(thisfile);
now do whatever with this data
end
Related Question