0% found this document useful (0 votes)
588 views2 pages

Convolution Using Tabular Method

This document describes a MATLAB program that uses a tabular method to perform convolution on two input sequences. The program defines the input sequences x and y, calculates the length of the convolution output N, pads the inputs with zeros, initializes the output c to zeros, calculates c using a double for loop summation, and plots the input and output sequences.

Uploaded by

Jasvinder kour
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
588 views2 pages

Convolution Using Tabular Method

This document describes a MATLAB program that uses a tabular method to perform convolution on two input sequences. The program defines the input sequences x and y, calculates the length of the convolution output N, pads the inputs with zeros, initializes the output c to zeros, calculates c using a double for loop summation, and plots the input and output sequences.

Uploaded by

Jasvinder kour
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Roll No.

9023/18
…:::Program [Link]…
Aim: Program for Convolution using Tabular Method.
Software Used: MATLAB 2018a
Input:
Editor

%Program for Convolution using Tabular Method

%Defining Functions
x = [1 2 2 3];
y = [2 5 1 1];
l1 = length(x)
l2 = length(y)
N = l1 + l2 - 1;
x = [x,zeros(1,N-l1)]
y = [y,zeros(1,N-l2)]
c = zeros(1,N);

for n=1:N
for k=1:n
c(n)=c(n)+x(k)+y(n-k+1);
end
end

disp('c =')
disp(c);

%Plotting Convolution Function


subplot(221);
stem(x);
title('(1) Input Sequence');
grid on;
xlabel('x');
ylabel('Amplitude');

subplot(222);
stem(y);
title('(2) Input Sequence');
grid on;
xlabel('y');
ylabel('Amplitude');

subplot(223);
stem(c);
title('(3) Convolution Output');
grid on;
xlabel('c');
ylabel('Amplitude');
Roll No. 9023/18

Output:

Results:
Convolution has been successfully implemented using Tabular Method.

You might also like