clc;
clear;
close all;
%IMPULSE FUNCTION
N1=-10;
N2=10;
N=0;
x=N1:N2;
y=(x-N==0);
subplot(3,2,1);
stem(x,y,'k','LineWidth',2);
xlabel('bf\color{blue}\fontsize{15}Time');
ylabel('bf\color{blue}\fontsize{15}Amplitude');
title('bf\color{red}\fontsize{20}Impulse Function');
grid on
axis tight
%STEP SIGNAL
N1=-10;
N2=10;
N=0;
x=N1:N2;
y=(x-N>=0);
subplot(3,2,2);
stem(x,y,'k','LineWidth',2);
xlabel('bf\color{blue}\fontsize{15}Time');
ylabel('bf\color{blue}\fontsize{15}Amplitude');
title('bf\color{red}\fontsize{20}Step Signal');
grid on
axis tight
%RAMP SIGNAL
N1=-10;
N2=10;
N=0;
x=N1:N2;
y=x.*(x-N>=0);
subplot(3,2,3);
stem(x,y,'k','LineWidth',2);
xlabel('bf\color{blue}\fontsize{15}Time');
ylabel('bf\color{blue}\fontsize{15}Amplitude');
title('bf\color{red}\fontsize{20}Ramp Signal');
grid on
axis tight
Cite As
Manish (2026). Ramp Signal, Impulse Signal, Step Function (https://in.mathworks.com/matlabcentral/fileexchange/134262-ramp-signal-impulse-signal-step-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
