0% found this document useful (0 votes)
50 views

MATLAB Implementation of Circular Convolution For Discrete Time Sequences / Signals

This document describes three activities to implement circular convolution for discrete time sequences in MATLAB: 1) Compute and plot the circular convolution of sequences [1 -1 2 3 4 1] and [2 1 3 4 0 5]. 2) Compute and plot the circular convolution of sequences (1/4)n and cos(3nπ/8) for 0≤n≤7 and 0≤n≤5. 3) Compute and plot the linear convolution of [1 -3 4] and [2 4 3 5 -1] using the circular convolution's padding property.

Uploaded by

Sarvraj Singh Rt
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

MATLAB Implementation of Circular Convolution For Discrete Time Sequences / Signals

This document describes three activities to implement circular convolution for discrete time sequences in MATLAB: 1) Compute and plot the circular convolution of sequences [1 -1 2 3 4 1] and [2 1 3 4 0 5]. 2) Compute and plot the circular convolution of sequences (1/4)n and cos(3nπ/8) for 0≤n≤7 and 0≤n≤5. 3) Compute and plot the linear convolution of [1 -3 4] and [2 4 3 5 -1] using the circular convolution's padding property.

Uploaded by

Sarvraj Singh Rt
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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