Priscilla Rachel Meganathan - Biomed - Dsplab 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

REG NO- 16MBE0016 (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;
clear all;
close all;
[x,Fs]=audioread('voice1.wav');
subplot(2,2,1);
plot(x);
[y,Fs]=audioread('voice2.wav');
subplot(2,2,2);
plot(y);
z=xcorr(x,y)
subplot(2,2,3);
plot(z);
k=corrcoef(z);

OUTPUT :

FOR PERFECT CORRELATION:


INTERPRETATION:

Correlation coefficient is +1

RESULT:

Thus the output for the recorded sound of human voice is analyzed by
using coefficient correlation.

You might also like