Professional Documents
Culture Documents
DE SAN MARCOS
Universidad del Perú - Decana de América
LABORATORIO 1
CÓDIGO: 14190133
a) x1(t)=u(t)
x = -10:10;
y = x;
stem(x,y);
b) x2(t)=π(t/3)
c) x3(t)= 2+t -2<t<0
2-0.5t 0<=t<5
0 resto
t=-10:0.001:10;
function y=ut(t)
k=find(t>=0);
y=zeros(1,length(t));
y(k)=1;
end
u=ut(t+2);
u1=ut(t);
u2=ut(t-5);
rt=(t+2).*u-(t+2).*u1;
mt=(2-0.5*t).*u1-(2-0.5*t).*u2;
z=mt+rt;
plot(t,z);
d) x4(t)=1-[t]/3
t=-3:0.001:3;
m=1+t/3;
function y=ut(t)
k=find(t>=0);
y=zeros(1,length(t));
y(k)=1;
end
u=ut(t);
rt=(-2)*(t/3).*u;
z=m+rt;
plot(t,z);
e) x5(t)=exp^-2[t]
t=-10:0.001:10;
m=exp(2*t);
function y=ut(t)
k=find(t>=0);
y=zeros(1,length(t));
y(k)=1;
end
u=ut(t);
rt=(exp(-2*t)-exp(2*t)).*u;
z=m+rt;
plot(t,z);
f) x6(t)=sen(6t)/6t
T=10;
h=900;
t=-10:1/h:T;
xt=sin(6*t)./(6*t);
plot(t,xt);
T=14;
h=900;
t=0:1/h:T;
xt=2*cos(2*pi*t/7);
plot(t,xt);
T=15;
h=900;
t=0:1/h:T;
xt=3*sin(2*pi*t/5);
plot(t,xt);
t=-0.001:0.01:6*pi+0.01;
y=sign(sign(sin(t))+sign(sin(t-0.15*2*pi))+2);
plot(t,y);
T=6;
h=900;
t=0:1/h:T;
xt=abs(0.5*sin(2*pi*t/2))+0.5*sin(2*pi*t/2);
plot(t,xt);
T=6;
h=900;
t=0:1/h:T;
xt=abs(sin(2*pi*t/3));
plot(t,xt);
t=-9.01:0.01:9;
function y=ut(t)
k=find(t>=0);
y=zeros(1,length(t));
y(k)=1;
end
u=ut(t-8);
u1=ut(t+4);
rt=(-5*t/6+20/3).*u1-(-5*t/6+20/3).*u+10;
plot(t,rt);
t=-3.01:0.01:3;
function y=ut(t)
k=find(t>=0);
y=zeros(1,length(t));
y(k)=1;
end
u=ut(t+2);
u1=ut(t+0.5);
u2=ut(t-1);
u3=ut(t-2);
u4=ut(t-3);
rt=(-2*t-1).*u-(-2*t-1).*u1+(4*t+2).*u1-(4*t+2).*u2+u2*3-u3*3+(-3*t+9).*u3-(-3*t+9).*u4;
plot(t,rt);