User`s guide

Table Of Contents
zpk
11-241
Example Example 1
Specify the following zero-pole-gain model.
To do this, type
z = {[] ; –0.5}
p = {0.3 ; [0.1+i 0.1–i]}
k = [1 ; 2]
H = zpk(z,p,k,–1) % unspecified sample time
Example 2
Convert the transfer function
h = tf([–10 20 0],[1 7 20 28 19 5])
Transfer function:
–10 s^2 + 20 s
----------------------------------------
s^5 + 7 s^4 + 20 s^3 + 28 s^2 + 19 s + 5
to zero-pole-gain form by typing
zpk(h)
Zero/pole/gain:
–10 s (s–2)
----------------------
(s+1)^3 (s^2 + 4s + 5)
Hz()
1
z 0.3
-----------------
2 z 0.5+()
z0.1 j+()z0.1 j()
------------------------------------------------------------
=