Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Name: Dipesh Rana

Roll no: 21106033


Lab Group G1
Experiment-7

Aim:- To perform autocorrelation and cross-correlation.


Platform used:- MATLAB

Theory:
In auto-correlation the given signal is correlated with itself,
usually the time-shifted version of itself. the autocorrelation
of the discrete time signal x[n] is expressed as:

Meanwhile, In cross correlation, the signal in-hand is


correlated with another signal so as to know how much
resemblance exists between them. the autocorrelation of two
discrete time signals x[n] and y[n] is expressed as:

The asterisk(*) represents the complex conjugate.


Problem Statements:
a) Compute and Sketch the Cross-correlation of x[n] and y[n].
x[n] = {1,1,2,2}
y[n] = {1,3,1}

Script:
Result:

b) Compute and Sketch the auto-correlation of x[n]={1,2,3,4}.

Script:
Plot:

c) Compute and Sketch the autocorrelation of x[n] = (0.5)^n*u(n).

Script:
Plot:

You might also like