How to Cross-correlation in matlab without using the inbuilt function?
can someone tell how to do the cross-correlation of two speech signals (each of 40,000 samples) in MATLAB without using the built-in function xcorr
and the correlation coefficient?
Thanks in advance.
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.Answers:
You can do cross-correlations using
fft
. The cross-correlation of two vectors is simply the product of their respective Fourier transforms, with one of the transforms conjugated.Example:
a=rand(5,1); b=rand(5,1); corrLength=length(a)+length(b)-1; c=fftshift(ifft(fft(a,corrLength).*conj(fft(b,corrLength))));SEE COMPLETE ANSWER CLICK THE LINKhttps://matlabhelpers.com/questions/how-to-cross-correlation-in-matlab-without-using-the-inbuilt-function-.php
Comments
Post a Comment