You are on page 1of 2

Signal and System Roll no:2018-EE-011

LAB: 09
OBJECT: To understand properties and operation of convelation.

Task 1: Use XCORR command to compute the autoconvelation function of the


sequence given in task 1.

CODE:

x=[1 -1 2 0 -1 0 0 0]
nx=[0:7]
y=xcorr(x,x)
xy=-7:7
stem(xy,y)

RESULT:

Department of Electronic Engineering


Sir Syed University of Engineering and Technology
Signal and System Roll no:2018-EE-011

Task 2: Calculate the energy of the sequence given in task 1.

CODE:

x=[1 -1 2 0 -1 0 0 0]
nx=[0:7]
E=sum(abs(x).^2)

RESULT:

E =

7
Task 4: Compute cross convelation of the given sequence

CODE:
x=[0 0 1 0 2 0 0 -1 0]
y=[0 0 1 0.8 0.6 0 0 0 0]
nx=[0:8]
ny=[0:8]
y=xcorr(x,y)
xy=-8:8
stem(xy,y)

RESULT:

Department of Electronic Engineering


Sir Syed University of Engineering and Technology

You might also like