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

Generation of Continuous Time Signals

This document describes a MATLAB program to generate four continuous time signals: a unit step signal, a unit ramp signal, a unit exponential signal, and a unit sinusoidal signal. The program defines the time intervals, assigns equations to the signals, plots the waveforms on a graph with labeled axes, and outputs the four signals.

Uploaded by

mathstopper
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)
174 views3 pages

Generation of Continuous Time Signals

This document describes a MATLAB program to generate four continuous time signals: a unit step signal, a unit ramp signal, a unit exponential signal, and a unit sinusoidal signal. The program defines the time intervals, assigns equations to the signals, plots the waveforms on a graph with labeled axes, and outputs the four signals.

Uploaded by

mathstopper
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

Ex: No: 1

GENERATION OF CONTINUOUS TIME SIGNALS


Date:

AIM:

To generate the continuous time signals using MATLAB software

APPARATUS REQUIRED:

PC with MATLAB software

ALGORITHIM:

Start the program


Enter the length of each signal sequence
Enter the interval limit for the signal to be generated
Plot the sequence with X,Y label
Output waveform is generated for each signals
Stop the program
PROGRAM:
%unit step signal
t=0:1:3;
x=ones(1,4);
subplot(2,2,1);
plot(t,x);
xlabel('t');
ylabel('amp');
title('unitstep signal');

%unit ramp signal


t=0:0.01:3;
x=t;
subplot(2,2,2);
plot(t,x);
xlabel('t');
ylabel('amp');
title('unitramp signal');

% unit exponential signal


t=0:0.01:3;
x=exp(-t);
subplot(2,2,3);
plot(t,x);
xlabel('t');
ylabel('amp');
title('unitexponential signal');

% unit sinusoidal signal


t=0:0.01:3;
x=sin(2*pi*t);
subplot(2,2,4);
plot(t,x);
xlabel('t');
ylabel('amp');
title('sinusoidal signal');

You might also like