Pole-zero plot of dynamic system model with plot customization options
h = pzplot(sys)
plots the poles and transmission zeros of the dynamic
h = pzplot(
sys and returns the plot handle
h to the
plot. Use this function to generate a pole-zero map with customizable plot
options such as
IOGrouping. For more information about using and
interpreting pole-zero maps, see
pzplot( plots into the axes
ax instead of the current axis
Plot the poles and zeros of the continuous-time system represented by the following transfer function:
sys = tf([2 5 1],[1 3 5]); h = pzplot(sys); grid on
Turning on the grid displays lines of constant damping ratio (zeta) and lines of constant natural frequency (wn). This system has two real zeros, marked by o on the plot. The system also has a pair of complex poles, marked by x.
Change the color of the plot title. To do so, use the plot handle,
p = getoptions(h); p.Title.Color = [1,0,0]; setoptions(h,p);
For this example, load a 3-by-1 array of transfer function models.
3x1 array of transfer functions. Each model has 1 outputs and 1 inputs.
Plot the poles and zeros of the model array. Define the colors for each model. For this example, use red for the first model, green for the second and blue for the third model in the array.
Plot the poles and zeros of the continuous-time system represented by the following transfer function with a custom option set:
Create the custom option set using
plotoptions = pzoptions;
For this example, specify the grid to be visible.
plotoptions.Grid = 'on';
Use the specified options to create a pole-zero map of the transfer function.
h = pzplot(tf([2 5 1],[1 3 5]),plotoptions);
Turning on the grid displays lines of constant damping ratio (zeta) and lines of constant natural frequency (wn). This system has two real zeros, marked by
o on the plot. The system also has a pair of complex poles, marked by
sys— Dynamic system
Dynamic system, specified as a SISO or MIMO dynamic system model, or an
array of SISO or MIMO dynamic system models. Dynamic systems that you can
use include continuous-time or discrete-time numeric LTI models such as
sys is a generalized state-space model
genss or an uncertain state-space model
pzplot returns the poles and
transmission of the current or nominal value of
sys is an array of models,
pzplot plots the poles and zeros of each model in the
array on the same diagram.
ax— Axes handle
Axes handle, specified as an axes object. If you do not specify the axes
pzplot uses the current axes
gca to plot the poles and zeros of the system.
h— Pole-zero plot options handle
Pole-zero plot options handle, returned as a scalar. Use
h to query and modify properties of your pole-zero
plot. You can use this handle to customize the plot with the