Você está na página 1de 5

CODIGO FUNCION SIGNO

t = -5:.001:5;
f = ustep(t); %función f, que toma la forma de ustep
plot(t,f,'LineWidt',3,'Color','r');
axis([-5 5 -1 2])
hold on
plot([-5 5],[0 0]) %gráfica del eje x
plot([0 0],[-1 2]) %gráfica del eje y
grid on
title('Gráfica de la señal Escalón Unitaría u(t)')
xlabel('Variable independiente t')
ylabel('u(t)')

CAPTURA DE PANTALLA
CODIGO FUNCION RAMPA UNITARIO

%Libreria ADSP
t = -5:.001:5;
r=uramp(t);
axis([-5 5 -1 2])
hold on
plot([-5 5],[0 0]) %gráfica del eje x
plot([0 0],[-1 2]) %gráfica del eje y
plot(t,r,'LineWidt',3,'Color','r');
grid on
title('FUNCION RAMPA UNITARIA r(t)')
xlabel('Variable independiente t')
ylabel('r(t)')

CAPTURA DE PANTALLA
CODIGO FUNCION ESCALON UNITARIO

t = -5:.001:5;
f = ustep(t); %función f, que toma la forma de ustep
plot(t,f,'LineWidt',3,'Color','r');
axis([-5 5 -1 2])
hold on
plot([-5 5],[0 0]) %gráfica del eje x
plot([0 0],[-1 2]) %gráfica del eje y
grid on
title('Gráfica de la señal Escalón Unitaría u(t)')
xlabel('Variable independiente t')
ylabel('u(t)')

CAPTURA DE PANTALLA
CODIGO FUNCION IMPULSO UNITARIO
%Libreria ADSP
i=1:100; j=1:98;
grid on
delta =[zeros(1,49),zeros(1,49)];
hold on
plot(delta,j,'LineWidt',3,'Color','r')
title('FUNCION IMPULSO UNITARIO s(t)')
xlabel('Variable independiente t')
ylabel('s(t)')

CAPTURA DE PANTALLA
CODIGO FUNCION RECTANGULO UNITARIO

%Libreria ADSP
i=1:100; j=1:98;
t=-1:1/500:1;
grid on
u1=[zeros(1,250),ones(1,751)];
u2=[zeros(1,751),ones(1,250)];
un=u1-u2;
hold on
plot(t,un,'LineWidt',3,'Color','r')
title('FUNCION RECTANGULO UNITARIO pi(t)')
xlabel('Variable independiente t')
ylabel('pi(t)')

CAPTURA DE PANTALLA

Você também pode gostar