Professional Documents
Culture Documents
INTRODUCCIN
LABORATORIO N02
1.-
>>t=-2:0.001:8;
2.5
1.5
0.5
-0.5
-2 -1 0 1 2 3 4 5 6 7 8
3.5
2.5
1.5
0.5
-0.5
-2 -1 0 1 2 3 4 5 6 7 8
>>x2=0.6*x(t)+0.2*x(t-2.5);figure(3);plot(t,x2)
2.5
1.5
0.5
-0.5
-2 -1 0 1 2 3 4 5 6 7 8
>>y2=0.6*y(t)+0.2*y(t-2.5);figure(4);plot(t,y2)
2.5
1.5
0.5
-0.5
-2 -1 0 1 2 3 4 5 6 7 8
>>x3=0.6*x(t)-0.6*x(t-3);figure(5);plot(t,x3)
1.5
0.5
-0.5
-2 -1 0 1 2 3 4 5 6 7 8
>>y3=0.6*y(t)-0.6*y(t-3);figure(6);plot(t,y3)
1.8
1.6
1.4
1.2
0.8
0.6
0.4
0.2
-0.2
-2 -1 0 1 2 3 4 5 6 7 8
a.
I.
>>t=-5:0.0001:5;
>>h=(t+1).*(t==0); %dirac(t)
>>figure(1),plot(t,h)
>>figure(2),plot(t,sinc(t))
>>c=conv(sinc(t),h);
>>t1=-10:0.0001:10;
>>figure(3),plot(t1,c)
1.5 1.2
1 0.8
0.6
0.5 0.4
0.2
0 0
-0.2
-0.5 -0.4
-5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5
1.2
0.8
0.6
0.4
0.2
-0.2
-0.4
-5 -4 -3 -2 -1 0 1 2 3 4 5
II.
>> t=-5:0.0001:5;
>> x=(t+1).*(t>=-1 & t<=0) + (-t+1).*(t>0 & t<=1);
>> figure(1),plot(t,x)
>> h=(t+2).*(t==0) + (t+2).*(t==-1) + (t).*(t==1);
>> figure(2),plot(t,h)
>> c=conv(x,h);
>> t1=-10:0.0001:10;
>> figure(3),plot(t1,c)
1.5 2.5
1.5
0.5 1
0.5
-0.5 -0.5
-5 -4 -3 -2 -1 0 1 2 3 4 5 -5 -4 -3 -2 -1 0 1 2 3 4 5
2.5
1.5
0.5
-0.5
-5 -4 -3 -2 -1 0 1 2 3 4 5
III.
>> a=1;
>>t=-1:0.0001:10;
>>x=exp(-a*t).*(1*(t>=0));
>>figure(1),plot(t,x)
>> b=3;
>>h=exp(-b*t).*(1*(t>=0));
>>figure(2),plot(t,h)
>> c=conv(x,h);
>> t=-2:0.0001:20;
>> figure(3),plot(t,c)
1 1
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0 0
-0.2 -0.2
-2 0 2 4 6 8 10 -2 0 2 4 6 8 10
2000
1800
1600
1400
1200
1000
800
600
400
200
-2 0 2 4 6 8 10 12 14 16 18 20
4.- CALCULAR LA TF
CONCLUSIONES
ANEXOS