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
Citar como
Manish (2025). Ramp Signal, Impulse Signal, Step Function (https://es.mathworks.com/matlabcentral/fileexchange/134262-ramp-signal-impulse-signal-step-function), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2023a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
