Specifications

Table Of Contents
zpk
16-235
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)
Example 3
Create a discrete-time ZPK model from a rational expression in the variable z,
by typing
z = zpk('z',0.1);
H = (z+.1)*(z+.2)/(z^2+.6*z+.09)
Zero/pole/gain:
(z+0.1) (z+0.2)
---------------
Hz
()
1
z 0.3
-----------------
2 z 0.5+
()
z 0.1 j+
()
z 0.1 j
()
------------------------------------------------------------
=