Professional Documents
Culture Documents
Expt 1 PDF
Expt 1 PDF
Aim:
To generate basic elementary and random signals using MATLAB.
1. Unit Impulse Signal
2. Unit Step Signal
3. Ramp Signal
4. Exponential Signal
5. Sinusoidal Signal
6. Cosine Wave
7. Sinc Signal
8. Rectangular Pulse
9. Triangular Pulse
10. Random Signal
Software used:
MATLAB (R2022-b)\
Description:
Elementary signals are those that are basically used to analyze basic systems. impulse
signal, unit step signal, sinusoidal signal, exponential signal, and ramp signal are some of the
elementary signals. Random signals are those which are not precisely predictable; that is, given
the past history of a signal and the amplitude values it has taken on, it is not possible to precisely
predict what particular value it will take on at certain instants in the future. The value of the
signal may only be predicted subject to certain probabilities.
1
Code:
clc;clear all;close all;
2
%8. Rectangular Pulse
n=-5:5; y2=(n>=-2); y4=(n<=2); y5=y2&y4; subplot(5,3,10);
stem(n,y5,'.m','LineWidth',1); ylabel('Amplitude'); xlabel('Time'); title('8.Rectangular
pulse');
%10.Random Signals
Simulated Graph:
Result
The basic elementary and random signals have been plotted using MATLAB and has been
analyzed accordingly