Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
I.
ACTIVIDADES
1. Sea () = ( 6 + 3 )
>> n=-20:20;
>> x=exp(j*((pi*n/6)+(pi/3)))
>> n=-20:20;
>> x=exp(i*((pi/3)*n*(pi/2)));
>> mod=abs(x);
>> fase=angle(x);
>> Re=real(x);
>> Im=imag(x):
>> [Re' Im' fase' mod']
ans =
0.0879
0.9869
-0.2341
-0.9522
0.3752
0.8966
-0.5080
-0.8214
0.6297
0.7281
-0.7375
-0.6188
0.8292
0.4960
-0.9027
-0.3623
0.9564
0.2206
-0.9890
-0.0741
1.0000
-0.0741
-0.9890
0.2206
0.9564
-0.3623
-0.9027
-0.9961
0.1615
0.9722
-0.3055
-0.9270
0.4428
0.8614
-0.5704
-0.7769
0.6855
0.6753
-0.7855
-0.5589
0.8683
0.4303
-0.9321
-0.2922
0.9754
0.1477
-0.9973
0
0.9973
-0.1477
-0.9754
0.2922
0.9321
-0.4303
-1.4828
0.1622
1.8071
-2.8311
-1.1862
0.4587
2.1037
-2.5346
-0.8897
0.7553
2.4002
-2.2380
-0.5931
1.0518
2.6968
-1.9415
-0.2966
1.3484
2.9933
-1.6449
0
1.6449
-2.9933
-1.3484
0.2966
1.9415
-2.6968
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
0.4960
0.8292
-0.6188
-0.7375
0.7281
0.6297
-0.8214
-0.5080
0.8966
0.3752
-0.9522
-0.2341
0.9869
0.0879
-0.8683
0.5589
0.7855
-0.6753
-0.6855
0.7769
0.5704
-0.8614
-0.4428
0.9270
0.3055
-0.9722
-0.1615
0.9961
-1.0518
0.5931
2.2380
-2.4002
-0.7553
0.8897
2.5346
-2.1037
-0.4587
1.1862
2.8311
-1.8071
-0.1622
1.4828
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
1.0000
>> stem(n,x)
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
-20
-15
-10
-5
10
15
20
>>stem(n,mod)
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-20
-15
-10
-5
10
15
20
>>stem(n,fase)
4
3
2
1
0
-1
-2
-3
-4
-20
-15
-10
-5
10
15
2. Sea
1() = {1, , 1,2,3 ,4}
2() = {2,1, , 1,2,1,3 ,2}
Calcular y graficar
a) () = 1( 2) + 2( + 1)
>> n1=-3:6;
>> x1=[1 7 -1 2 3 4 0 0 0 0]
x1 =
1
-1
>> n2=-3:6;
>> x2=[0 0 2 1 3 -1 2 1 3 2]
x2 =
0
-1
>> y=x1+x2
y=
1
>> stem(y)
20
b) () = 1( + 1) + 22()
>> n1=-5:5;
>> x1=[4 3 2 -1 7 1 0 0 0 0 0]
x1 =
Columns 1 through 10
4
-1
Column 11
0
>> n2=-5:5;
>> x2=2*[0 0 0 2 1 3 -1 2 1 3 2]
x2 =
Columns 1 through 10
0
Column 11
4
-2
10
>> y=x1+x2
y=
Columns 1 through 10
4
-2
Column 11
4
>> stem(y)
10
-2
10
11
20
10
0
-10
-20
10
12
14
16
10
5
0
-5
-10
-15
10
12
14
b) 2() = {1,0.5,1}
>> h2=[1 0.5 1];
>> y2=conv(x,h2);
>> subplot(2,1,1);stem(y2)
>> subplot(2,1,2);stem(x)
20
10
-10
10
12
14
16
10
5
0
-5
-10
-15
10
12
14
-5
-10
10
12
14
16
10
5
0
-5
-10
-15
10
12
14
d) 1() = {0.25,0.5,0.25}
>> h4=[0.25 0.5 0.25];
>> y4=conv(x,h4);
>> subplot(2,1,1);stem(y4)
>> subplot(2,1,2);stem(x)
6
4
2
0
-2
-4
10
12
14
16
10
5
0
-5
-10
-15
10
12
14
e) 1() = {1,1,1}
>> h5=[1 1 1];
>> y5=conv(x,h5);
>> subplot(2,1,1);stem(y5)
>> subplot(2,1,2);stem(x)
20
15
10
5
0
-5
10
12
14
16
10
5
0
-5
-10
-15
4.
10
12
14
Calcular el resultado de aplicar la seal anterior a los sistemas descritos por las
ecuaciones en diferencias
1
a) 1() = ( 1) + ( + 1)
4
>> x
x=
1
-1
10
-2
10
-1
4 -11
>> stem(y)
15
10
-5
-10
-15
10
12
14
b) 2() = 2( 1) + () 2( 1)
Recomendacin: obtenga h(n) usando x[n]=[n] y use el comando conv o halle
la funcin de transferencia utilizando la transformada Z y aplique el comando
filter (asuma T=1)
>> x=[1 -1 10 3 5 -2 1 10 -1 3 4 -11 5 2];
>> x
x=
1
-1
10
-2
10
-1
4 -11
Sampling time: 1
>> [y,n]=filter(nz,dz,x)
stem(y)
10
-10
-20
-30
-40
-50
10
12
14
() = () = sin(2fnT + ) = Asin(2n
Determine: mdulo, fase, parte impar, parte par
muestreada (usar los comandos, abs, fase)
>> n=0:9;
>> x=2*sin((2*pi*(200/1000)).*n)
x=
Columns 1 through 8
0
1.9021
Columns 9 through 10
1.9021
1.1756
-1.1756 -1.9021
>> x=2*sin((2*pi*(200/1000)).*n);
>> stem(n,x)
2
1.5
1
0.5
0
-0.5
-1
-1.5
-2
0.4
0.6
>> mod=abs(x);
>> fase=angle(x);
>> stem(mod,x)
2
1.5
1
0.5
0
-0.5
-1
-1.5
-2
0.2
0.8
1.2
1.4
1.6
1.8
>> stem(fase,x)
2
1.5
1
0.5
0
-0.5
-1
-1.5
-2
0.5
1.5
2.5
3.5