Вы находитесь на странице: 1из 5

syms k

f(k)=heaviside(k)*(k-2)

f(k) =
heaviside(k)*(k - 2)
syms z
F(k)=ztrans(f,k,z)

F(k) =
z/(z - 1)^2 - 2/(z - 1) - 1

syms k
f(k)=heaviside(k)*(k-2)

f(k) =
heaviside(k)*(k - 2)

k=1:20

k =
Columns 1 through 15
1 2 3 4 5 6 7 8 9 10 11
12 13 14 15
Columns 16 through 20
16 17 18 19 20
y=f(k)

y =
[ -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
plot(k,y)
18

16

14

12

10

-2
0 2 4 6 8 10 12 14 16 18 20

syms z
F(z)=((z-1)*(z-2))/(z^2+1)

F(z) =
((z - 1)*(z - 2))/(z^2 + 1)
syms t
f(t)=iztrans(F,z,t)

f(t) =
(-i)^(t - 1)*(- 3/2 + i/2) + i^(t - 1)*(- 3/2 - i/2) +
2*kroneckerDelta(t, 0)

2-
syms z
H(z)=3*(z-1)/((z+0.9*j)*(z-0.9*j))

H(z) =
(3*z - 3)/((z - (9*i)/10)*(z + (9*i)/10))
h=tf([3 -3],[10-0.81])

h =

3 s - 3
-------
9.19

Continuous-time transfer function.


pzmap(h);grid on

Pole-Zero Map
1
1

0.8
0.8

0.6
0.6

0.4
0.4
Imaginary Axis (seconds-1)

0.2
0.2 0.08
0.17
0.28
0.38
0 0.5
0.64
0.8
0.94
0.8
0.64
0.5
0.38
0.28
0.17
-0.2 0.08
0.2

-0.4
0.4

-0.6
0.6

-0.8
0.8

-1
10 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-1
Real Axis (seconds )

[p,z]=pzmap(h);grid on
[p,z]=pzmap(h)

p =
Empty matrix: 0-by-1
z =
1

b-
syms z
H(z)=3*(z-1)/((z+0.9*j)*(z-0.9*j))

H(z) =
(3*z - 3)/((z - (9*i)/10)*(z + (9*i)/10))

syms k
x(k)=iztrans(H,k)
x(k) =
(-(9*i)/10)^k*(50/27 + (5*i)/3) + ((9*i)/10)^k*(50/27 - (5*i)/3) -
(100*kroneckerDelta(k, 0))/27
k=1:20

k =
Columns 1 through 15
1 2 3 4 5 6 7 8 9 10 11
12 13 14 15
Columns 16 through 20
16 17 18 19 20
y=x(k)

y =
[ 3, -3, -243/100, 243/100, 19683/10000, -19683/10000, -
1594323/1000000, 1594323/1000000, 129140163/100000000, -
129140163/100000000, -10460353203/10000000000, 10460353203/10000000000,
847288609443/1000000000000, -847288609443/1000000000000, -
68630377364883/100000000000000, 68630377364883/100000000000000,
5559060566555523/10000000000000000, -
5559060566555523/10000000000000000, -
450283905890997363/1000000000000000000,
450283905890997363/1000000000000000000]
plot(k,y)
3

-1

-2

-3
0 2 4 6 8 10 12 14 16 18 20

el sistema es estable por que las oscilaciones son continuas


c-
syms k
x(k)=cos((k*pi)/2)*heaviside(k)

x(k) =
cos((pi*k)/2)*heaviside(k)
k=0

k =
0
y=x(k)

y =
1/2
d-