Ramp Signal, Impulse Signal, Step Function

Versión 1.0.0 (1,22 KB) por Manish
Lab 3
5 Descargas
Actualizado 23 ago 2023

Ver licencia

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 Linux
Etiquetas Añadir etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0