You are on page 1of 3

REG NO- 16MEA0003 (SESSION1)

TITLE: ANALYZING CORRELATION BETWEEN TWO


SIGNALS
AIM:

To record and analyze correlation exists between recorded signals.

ALGORITHM:

Recording the bike sound

Fetching the signal and


programming in matlab

Analysing correlation between 2


signals

Comparison of two signals and


output
PROGRAM CODE:
clc;
close all;
clear all;
[A]=wavread('C:\Users\Paul\Desktop\stable');
subplot(2,2,1);
plot(A);
xlabel('Time');
ylabel('Frequency');
title('Stable');
[B]=wavread('C:\Users\Paul\Desktop\accelarated');
subplot(2,2,2);
plot(B);
xlabel('Time');
ylabel('Frequency');
title('Accelaration');
C=xcorr(A,B);
subplot(2,2,3);
plot(C);
xlabel('Time');
ylabel('Frequency');
title('Correlation');
D=corrcoef(C)

OUTPUT :

FOR PERFECT CORRELATION:


COMMAND WINDOW:

INTERPRETATION:

Correlation coefficient is +1

RESULT:

Thus the output for the recorded sound of motor bike is analyzed by using
coefficient correlation.

You might also like