You are on page 1of 2

Experiment 3 Aim: MATLAB Implementation of Circular convolution for discrete time sequences / signals.

Activity 1. Find and plot the circular convolution of the sequences x1 (n) = [1 -1 2 3 4 1] and x2 (n) = [2 1 3 4 0 5]. n=0:5 x1=[1 -1 2 3 4 1] x2=[2 1 -3 4 0 5] c=cconv(x1,x2,6) stem(n,c) xlabel('time') ylabel('amplitude')

Activity 2. Compute and plot the circular convolution for the following sequences x1(n) = (1/4) n x2 (n) = cos (3n/8) 0n7 0n5

n1=0:7 x1=(1/4).^n1 n2=0:5 x2=cos(3*n2*pi/8) n=min(min(n1),min(n2)):max(max(n1),max(n2)); c=cconv(x1,x2,8) stem(n,c) xlabel('time') ylabel('amplitude')

Activity 3. Compute and plot the linear convolution using circular convolution (use padding property) for following sequences x1(n) = [1 -3 4] x2(n) = [2 4 3 5 -1] x1=[1 -3 4 0 0]; x2=[2 4 3 5 -1]; c=cconv(x1,x2); stem(c) xlabel('time') ylabel('amplitude')

Conclusion: We have performed the circular convolution and linear convolution by using circular convolution.

You might also like