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.
1 回表示 (過去 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!