Saturday, January 25, 2014

Matlab Program for Auto Correlation

with 0 Comment
Matlab Program for Auto Correlation:                                      

clc
clear all
close all
n=0:3;
x=[1 2 3 4];
subplot(1,2,1);
stem(n,x);
grid on
title('x(n)sequence');
xlabel('n');
ylabel('Amplitude');
t=-3:3;
y=xcorr(x,x);
subplot(1,2,2);
stem(t,y);
grid on
title('rxx(l)');
xlabel('n');
ylabel('Amplitude');

OUTPUT:




0 comments:

Post a Comment

Powered by Blogger.

Blog Archive