You are on page 1of 3

UNIVERSIDAD POLITECNICA SALESIANA

NOMBRE: BRANDON DANIEL CONDEMAITA


CURSO: ANALISIS DE SEÑALES Y SISTEMAS
EJERCICIO EN MATLAB.

clear all;
clc;
t=-10:0.1:10; tt=t;
A=1;
f=1;
d=0;
b=0;
seno=A*sin(tt*f+d)+b;
subplot(3,1,1)
plot(t,seno)
title('Comvolución sen-
triangulo')
t=-10:0.1:10;
t1=-1;
t2=1;
m=0;
tt=t
A=1;
b=0;
d=1;
dmax=max(t);
ii=length(t);
for d=0:4*dmax
for i=1:ii
if tt(i)<=t1-d
u1(i)=0
end
if tt(i)>t1-d && tt(i)<=m
u1(i)=(tt(i)-t1-d)/(m-t1-d)
end
if m<tt(i) && tt(i)<t2-d
u1(i)=(t2-tt(i)-d)/(t2-m-d)
end
if tt(i)>t2-d
u1(i)=0
end
end

U=(A.*u1)+b;
Utao=fliplr(U);
subplot(3,1,2)
plot(t,Utao)
C=Utao.*seno;
Cf(d+1)=sum(C);
subplot(3,1,3)
plot(Cf)
pause(0.1)
end
EJERCICIO A MANO.

You might also like