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 (M.Tech) is the Technical Education Director at WebVidyalayam. She focuses on translating high-level systems engineering into accessible technology courses.

Share
Published by
Rajeshwari Chiluveru

Recent Posts

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 weeks 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 weeks 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 weeks ago

Samsung TV Optimize Now Not Working? (2026 Fix: Greyed Out, Stuck or Not Responding)

🎓 Technical Module: Memory Maintenance Logic Module: WV-OS-307 Verified 2026 👨‍🏫 Instructor: Vangari Divya (M.Tech)…

2 weeks ago

Samsung Smart Hub Test Failed? (2026 Fix: DNS, ISP Block & Authentication Error)

 Introduction: The Setup Paradox "There is a specific moment of frustration for every Samsung Smart…

3 weeks ago

Samsung TV Picture Test Not Working? 4 Technical Recovery Fixes

Introduction: Lab Diary & Experience "When your Samsung TV screen begins to flicker or show…

3 weeks ago