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!