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

Rajeshwari is a Smart TV and connectivity specialist with over 7 years of hands-on experience in troubleshooting real-world device issues. She has worked extensively on diagnosing problems such as WiFi not working, HDMI ARC/eARC failures, app errors, and connectivity issues across platforms like Samsung, Hisense, and Android TV. At Web Vidyalayam, she focuses on creating verified, step-by-step solutions based on practical testing rather than theory. Her goal is to simplify complex technical problems and help users fix their devices quickly and confidently.

Share
Published by
Rajeshwari Chiluveru

Recent Posts

Hisense Smart TV WiFi Not Working? Easy Fixes That Work (2026 Guide)

Introduction: When your Hisense TV won't connect to WiFi, it is rarely a problem with…

1 month ago

Fix Hisense TV Storage Space Running Out: 2026 OS Logic Hub

Hisense Google TV Storage Space Running Out: Why it Happens and How to Fix It…

1 month ago

Samsung Smart TV HDMI ARC/eARC Not Working? Easy Fixes That Actually Work (2026 Guide)

Introduction: "Setting up a soundbar with your Samsung TV should be simple, but the HDMI…

1 month ago

Samsung TV Red Light Blinking? 4 Fixes (2026 Power Logic Hub)

User Problem Scenario: The Red Light "Panic" You press the power button on your Samsung…

2 months ago

Samsung TV Not Connecting to WiFi: 2026 Easy Fix Guide

Introduction: I Know the Feeling "We’ve all been there. You sit down to watch your…

2 months ago

Samsung TV Restarting During Diagnosis? Fix the Reboot Loop Fast

User Problem Scenario: The "Diagnosis Loop" Paradox Imagine you notice your apps are slow. You…

2 months ago