can someone tell how to do the cross-correlation of two speech signals(each of 40,000 samples) in the matlab without using the inbuilt function Xcorr and how do I find correlation coefficient?
Please be tolerant.Thanks in advance.
clc;
clear all;
close all;
x=input('Enter the first Sequence : ');
h=input('Enter the second sequence : ');
n=length(x);
m=length(h);
k=n+m-1;
x=[x zeros(1,k-n)]';
h=wrev(h);
h=[h zeros(1,k-m)]';
for i=1:k
c(:,i)=circshift(x,i-1);
end
y=c*h;
disp('Correlation of the sequences')
disp(y');