pole and zero locations -凯发k8网页登录
this example shows how to examine the pole and zero locations of dynamic systems both graphically using pzplot
and numerically using pole
and zero
.
examining the pole and zero locations can be useful for tasks such as stability analysis or identifying near-canceling pole-zero pairs for model simplification. this example compares two closed-loop systems that have the same plant and different controllers.
create dynamic system models representing the two closed-loop systems.
g = zpk([],[-5 -5 -10],100); c1 = pid(2.9,7.1); cl1 = feedback(g*c1,1); c2 = pid(29,7.1); cl2 = feedback(g*c2,1);
the controller c2
has a much higher proportional gain. otherwise, the two closed-loop systems cl1
and cl2
are the same.
graphically examine the pole and zero locations of cl1
and cl2
.
pzplot(cl1,cl2) grid
pzplot
plots pole and zero locations on the complex plane as x
and o
marks, respectively. when you provide multiple models, pzplot
plots the poles and zeros of each model in a different color. here, there poles and zeros of cl1
are blue, and those of cl2
are green.
the plot shows that all poles of cl1
are in the left half-plane, and therefore cl1
is stable. from the radial grid markings on the plot, you can read that the damping of the oscillating (complex) poles is approximately 0.45. the plot also shows that cl2
contains poles in the right half-plane and is therefore unstable.
compute numerical values of the pole and zero locations of cl2
.
z = zero(cl2); p = pole(cl2);
zero
and pole
return column vectors containing the zero and pole locations of the system.
see also
| |