필터 지우기
필터 지우기

Cross Correlations among 56 audio files using for loop

조회 수: 1 (최근 30일)
Ahmad Bilal
Ahmad Bilal 2018년 3월 19일
편집: Jan 2018년 3월 19일
Hi, I have 56 audio files in .wav format and now i want to compute cross correlations among them. I know the general principle of cross correlation among two files.
Actually i want to create a for loop such it takes every time one wave file and compute cross correlation with rest of 55 audio files one by one.
can anybody help me in this regard that how i can write a code snippet for this.??
Thank you.

채택된 답변

Jan
Jan 2018년 3월 19일
편집: Jan 2018년 3월 19일
Folder = tempdir; % Adjust to your needs
FileList = dir(fullfile(Folder, '*.wav'));
nFile = numel(FileList);
for i1 = 1:nFile
file1 = fullfile(Folder, FileList(i1).name);
for i2 = i1+1:nFile
file2 = fullfile(Folder, FileList(i2).name);
... Now compare file1 and file2
end
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Speech Recognition에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by