0% found this document useful (0 votes)
15 views3 pages

Experiment 5

Important

Uploaded by

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

Experiment 5

Important

Uploaded by

mannammanikanta7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment-5

Linear Convolution of Continues time signals


Aim: To perform the Linear Convolution of continuous-time signals in MATLAB and verify
the results mathematically.
Software Required: MATLAB
Procedure:
● Open MATLAB Software
● Open new M-file
● Type the program
● Save in current directory
● Run the program
● For the output see command window or figure window.

Theory:

Linear Convolution is a mathematical operation used to determine the output of a Linear


Time-Invariant (LTI) system when an input signal passes through it. The process involves
integrating (or summing for discrete signals) the product of one signal with a time-reversed
and shifted version of another signal. It is widely used in signal processing, control systems,
and communication for analyzing system responses. In continuous-time systems, the
convolution integral computes the output signal, while in discrete-time systems, a summation
is used.
Program:

clc;
clear all;
close all;
% Define the continuous-time signals (discretized form)
t1 = -5:0.1:5; % Time vector for x(t)
t2 = -5:0.1:5; % Time vector for h(t)
% Example signals: x(t) and h(t)
x_t = (t1 >= 0 & t1 <= 1); % Rectangular pulse signal
h_t = exp(-t2) .* (t2 >= 0); % Exponential signal
% Plot the input signals
figure;
subplot(3,1,1);
plot(t1, x_t, 'LineWidth', 1.5);
xlabel('Time (t)'); ylabel('x(t)');
title('Signal x(t)');
grid on;
subplot(3,1,2);
plot(t2, h_t, 'LineWidth', 1.5);
xlabel('Time (t)'); ylabel('h(t)');
title('Signal h(t)');
grid on;
% Perform convolution using conv()
dt = 0.1; % Sampling interval
y_t = conv(x_t, h_t) * dt; % Convolution scaled by dt
% Time vector for convolution result
t_conv = (t1(1) + t2(1)):dt:(t1(end) + t2(end));
% Plot the output signal
subplot(3,1,3);
plot(t_conv, y_t, 'LineWidth', 1.5);
xlabel('Time (t)');
ylabel('y(t)');
title('Convolution Output y(t) = x(t) * h(t)');
grid on;

Output:
Result: Linear Convolution of continuous-time signals in MATLAB is implemented and
verified the results mathematically.

You might also like