Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Comparing two signals using correlation in matlab

Status
Not open for further replies.

Kashyap Cherukuri

Junior Member level 3
Joined
Jan 2, 2011
Messages
25
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,293
Location
Kharagpur/Hyderabad
Activity points
1,419
How to compare two signals using correlation in matlab. i know the function is xcorr. But xcorr returns an array of coefficients. What I want to learn is the next step in comparing them. I have no idea of how to compare them.
 

See what I am getting is that u dont know what cross correlation means...
When there u find the cross correlation between signals A and B, U are actually judging the how closely A and B are related.
[corr,lag]=xcorr(A,B,maxlag);
stem(lag,corr);
what it does that with different- different lags compares A and B. and gives u the result. The more the value of coefficient the similar they are.

U can also use cross correlation for pattern recognition as follows:
autocorrelate A
Cross correlate A and B
if the results are same then A and B are same.
 

The voice files can be read in an arry for each and proceed.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top