Professional Documents
Culture Documents
Generation of Impulse, Unit Step & Ramp Function
Generation of Impulse, Unit Step & Ramp Function
9023/18
…:::Program 1:::…
Aim: Program to generate Impulse, Unit-Step & Ramp Function.
Software Used: MATLAB 2018a
Input:
Editor
%Defining Functions
t=-10:1:10;
impulse = t==0; %Impulse Function
unitstep = t>=0; %Unit Step Function
ramp = t.*unitstep; %Ramp Function
Output:
Results:
Impulse, Unit-Step & Ramp Functions have been successfully generated.