DynamicSystems
ZeroPolePlot
plot zeros and poles of a linear system
Calling Sequence
Parameters
Options
Description
Examples
ZeroPolePlot (sys, opts)
sys
-
System; system object to plot
opts
(optional) equation(s) of the form option = value; specify options for the ZeroPolePlot command
color = name or string or list of same
Specify the colors of the zeros and poles of each subsystem. If one color is specified, all subsystems use that color. If a list of colors is specified, the colors of the subsystems are selected cyclically from the list. The default is to use the value of the colors variable of the DynamicSystems[SystemOptions] command. The keyword colour may be used as a synonym for color.
legend = list or element
Specifies the legend for the plot. A list specifies a legend entry for each subsystem. The elements in the list correspond to the Matrix of subsystems taken in Fortran order. An element can be used for a one-by-one Matrix of subsystems. The default is no legend.
output = plot, data, or list of same
Specifies the output of ZeroPolePlot. The name plot returns the plot structure. The name data returns the data. A list of those names returns a corresponding list of plots and data. The default is plot.
The data is returned as a Matrix for a single selected subsystem and as a list of Matrices for multiple selected subsystems. Each Matrix has two columns: the first is the horizontal component and the second is the vertical component.
subsystem = [ posint, posint ] or list of same
Selects subsystems of a multi-input/multi-output system. Each selected subsystem is specified as a list of two indices: the first specifies the output and the second specifies the input. For example, 1,2 specifies the subsystem from the second input to the first output. A list of lists selects multiple subsystems. The default setting is to select all subsystems, using Fortran ordering. That is, for an m x n system, the default list of subsystems is [ [1,1], ..., [m,1], ..., [1,n], ..., [m,n] ].
unitcircle = truefalse
Specifies whether the unit circle (a circle with radius one and center at the origin) is plotted. This is the default when the system is discrete. The interior of the unit circle is the region of stability for a discrete system.
The ZeroPolePlot command plots the zeros and poles of a subsystem of sys, a System object. The zeros correspond to the roots of the numerator of the transfer-function of sys, the poles to the roots of the denominator.
The roots are plotted on the complex plane. The horizontal axis corresponds to the real part of the roots, the vertical axis to the imaginary part.
Zeros are plotted as circles, poles are plotted as crosses.
The default plot-option axes is set to boxed; this permits viewing a pole (cross) that would otherwise lie on an axis.
For a multi-input/multi-output system, some or all of the subsystems can be selected. The option subsystem selects the subsystems.
The ZeroPolePlot command takes all standard plot,options. For the special syntax that ZeroPolePlot uses with the color option, see the Options section.
with⁡DynamicSystems:
Create a system with two inputs and two outputs:
sys≔TransferFunction⁡ss+1+I⋅10⁢s+1−I⋅10|1s+1,1s+3−I⋅7⁢s+3+I⋅7|1s+3⁢s+5:
sys:-tf
ss2+2⁢s+1011s+11s2+6⁢s+581s2+8⁢s+15
ZeroPolePlot⁡sys,color=red,green,blue,brown,title=Zeros and Poles
ZeroPolePlot⁡sys,subsystem=1,1,color=red,title=System [1,1]
ZeroPolePlot⁡sys,subsystem=1,2,2,1,color=red,blue,title=Systems [1,2] and [2,1]
dx≔ZeroPolePlot⁡sys,output=data
dx≔0.,−1.000000000−10.00000000⁢I,−1.+10.00⁢I,,−3.000000000−7.000000000⁢I,−3.+7.000000000⁢I,,−1.,,−5.,−3.000000000
The commands to create the plot from the Plotting Guide are
sys_z≔TransferFunction⁡40⁢3⁢z−4200⁢z3−420⁢z2+300⁢z−70,discrete,sampletime=0.1:
ZeroPolePlot⁡sys_z,color=red,title=Discrete System
See Also
DynamicSystems[RootLocusPlot]
DynamicSystems[SystemObject]
Download Help Document