Matlab

convolution of signals

Convolution for both signals and sequence:

Convolution is defined as mathematical way of combining two signals in order to form third the signal. It plays a significant role because it relates the input signal and impulse response of the system to the output of the system. Which is used to provide relationship of LTI system.

Some important properties of convolution are:

Let us consider two signals x1(t) and x2(t) for these the convolution is

x1(t)* x2(t) = ) )  = ) )

Commutative property:

The commutative property of convolution is

x1(t)*x2(t) = x2(t) *x1(t)

Distributive property:

The Distributive property of convolution is

x1(t)*[ x2(t)+ x3(t)]= [x1(t)* x2(t)]+[ x1(t)* x3(t)]

Associative property:

The Associative property of convolution is

x1(t)*[ x2(t)*x3(t)]= [x1(t)* x2(t)]* x3(t)

Convolution performs the following operations are:

  • Folding
  • Multiplication
  • Addition
  • Shifting

clc;

close all;

   clear all;

%program for convolution of two sequences

x=input(‘enter input sequence: ‘);

h=input(‘enter impulse response: ‘);

y=conv(x,h);

subplot(3,1,1);

stem(x);

xlabel(‘n’);

ylabel(‘x(n)’);

title(‘input sequence’)

subplot(3,1,2);

stem(h);

xlabel(‘n’);

ylabel(‘h(n)’);

title(‘impulse response sequence’)

subplot(3,1,3);

stem(y);

xlabel(‘n’);

ylabel(‘y(n)’);

title(‘linear convolution’)

disp(‘linear convolution y=’);

disp(y)

%program for signal convolution

t=0:0.1:10;

x1=sin(2*pi*t);

h1=cos(2*pi*t);

y1=conv(x1,h1);

figure;

subplot(3,1,1);

plot(x1);

xlabel(‘t’);

ylabel(‘x(t)’);

title(‘input signal’)

subplot(3,1,2);

plot(h1);

xlabel(‘t’);

ylabel(‘h(t)’);

title(‘impulse response’)

subplot(3,1,3);

plot(y1);

xlabel(‘n’);

ylabel(‘y(n)’);

title(‘linear convolution’);

Rajeshwari Chiluveru

Share
Published by
Rajeshwari Chiluveru

Recent Posts

Google Spam Update 2025: Impact, Recovery Guide & SpamBrain Explained

Google released a spam update on 26th of August 2025 and this is affecting a…

1 month ago

Google Experiments with Black Sitelink Colors instead of Blue

Google keeps on testing google search display all the time and this time we are…

1 year ago

What are Template Tags in WordPress? How to Use Template Tags

In wordpress if you are developing new or custom wordpress theme or wordpress plugin then…

2 years ago

Google Search Indexing Issues Started on 31st January to February 2024

If you are experiencing indexing issues of your website then you are not alone and…

2 years ago

Create QR Code for Pages & Post using Plugin in WordPress

On your wordpress website if you want to generate qr code for pages and posts…

2 years ago

Add Google Search Console HTML File Upload on WordPress

If you are trying to verify your WordPress website with google search console with html…

2 years ago