I have about 300 short wav files, which have to be load into MATLAB. I am not able to find any information on how to load all the wav files into Matlab for further processing plz help.
2 次查看(过去 30 天)
显示 更早的评论
I know how to load individal file wav file in matlab,but i want to load complete database.
回答(1 个)
KALYAN ACHARJYA
2019-3-25
% Ensure that all wav files in current directory and file names in proper sequence
wavefiles=dir('*.wav');
for i=1:length(wavefiles)
filename=wavefiles(i).name;
waveFile{i}=audioread(filename);
%Do operartion
end
2 个评论
Walter Roberson
2019-4-1
https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort permits customization of sort order for filenames.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Signal Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!