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
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
kc
kc 2019년 4월 1일
thanks ,actually i have a mixed data set of about 500 files.I need to process them according to a perticular coding in the name of files itself.Let me see if this is useful,Thanks again.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by