You are on page 1of 6

LABORATORIO 2 SYSC

Juan Sebastian Moreno


Andres Santiago Camargo
Carlos Julian Buitrago

 x(t – 1)

 x(2 – t)
 x(2t + 1)

 x(4 – t/2)
 [x(t) + x(– t)]u(t)

CÓDIGOS
 clear all;
t=-1.001:0.0001:3;
x=((t>-1)&(t<0)).*(t)+((t>0)&(t<=1)).*(1)+((t>1)&(t<=2)).*(2)+((t>2)&(t<3)).*(-
t+3);
plot(t,x),grid;
 clear all;
t=-4:0.0001:4;
x=(-t<-2).*(0)+((-t>-2)&(-t<-1)).*(-t+1)+((-t>-1)&(-t<=0)).*(1)+((-t>0)&(-
t<1)).*(2)+((-t>=1)&(-t<2)).*(t+2);
plot (t,x),grid;

 clear all;
t=-3:0.0001:3;
x=(t<-(3/2)).*(0)+((t>-(3/2))&(t<-1)).*(2*t+2)+((t>-1)&(t<=-(1/2))).*(1)+((t>-
1/2)&(t<0)).*(2)+((t>=0)&(t<1/2)).*(-2*t+1)+(t>=1/2).*(0);
plot (t,x);grid;
 t=-4:0.0001:4;
x = (t<-2).*(0)+((t>-2)&(t<-1)).*(t+1)+((t>-1)&(t<=0)).*(1)+((t>0)&(t<1)).*(2)+
((t>=1)&(t<2)).*(-t+2);
t2 = -t.*2;
t3 = 8 + t2;
plot(t3,x),grid ;
 clear all;
t=-4:0.0001:4;
y=-t;
x= (t<-2).*(0)+((t>-2)&(t<-1)).* (t+1)+((t>-1)&(t<=0)).* (1)+((t>0)&(t<1)).* (2)+
((t>=1)&(t<2)).* (-t+2);
x2=(y<-2).*(0)+((y>-2)&(y<-1)).* (y+1)+((y>-1)&(y<=0)).* (1)+((y>0)&(y<1)).*
(2)+((y>=1)&(y<2)).* (-y+2);
x3= x2+x;
x4=(t>=0).*x3;
plot(t,x4),grid;

You might also like