User`s guide

Table Of Contents
zpkdata
11-244
Example Given a zero-pole-gain model with two outputs and one input
H = zpk({[0];[–0.5]},{[0.3];[0.1+i 0.1–i]},[1;2],–1)
Zero/pole/gain from input to output...
1
#1: -------
(z–0.3)
2 (z+0.5)
#2: -------------------
(z^2 – 0.2z + 1.01)
Sampling time: unspecified
you can extract the zero/pole/gain data embedded in H with
[z,p,k] = zpkdata(H)
z =
[ 0]
[-0.5000]
p =
[ 0.3000]
[2x1 double]
k =
1
2
To access the zeros and poles of the second output channel of H, get the content
of the second cell in
z and p by typing
z{2,1}
ans =
–0.5000
p{2,1}
ans =
0.1000+ 1.0000i
0.1000– 1.0000i