Main Content

sgrid

Generate s-plane grid of constant damping factors and natural frequencies

Description

example

sgridgenerates a grid of constant damping factors from 0 to 1 in steps of 0.1 and natural frequencies from 0 to 10 rad/sec in steps of one rad/sec for pole-zero and root locus plots.sgridthen plots the grid over the current axis.sgridcreates the grid over the plot if the current axis contains a continuous s-plane root locus diagram or pole-zero map.

sgrid(zeta,wn)plots a grid of constant damping factor and natural frequency lines for the damping factors and natural frequencies in the vectorszetaandwn, respectively.sgrid(zeta,wn)creates the grid over the plot if the current axis contains a continuous s-plane root locus diagram or pole-zero map.

Alternatively, you can selectGridfrom the context menu to generate the same s-plane grid.

sgrid(___,'new')clears the current axes first and setshold on.

sgrid(AX,___)plots the s-plane grid on theAxesorUIAxesobject in the current figure with the handleAX. Use this syntax when creating apps withsgridin the App Designer.

Examples

collapse all

Create the following continuous-time transfer function:

H ( s ) = 2 s 2 + 5 s + 1 s 2 + 2 s + 3

H = tf([2 5 1],[1 2 3]);

Plot the root locus of the transfer function.

rlocus(H)

Figure contains an axes object. The axes object contains 4 objects of type line. This object represents H.

Plots-plane grid lines on the root locus.

sgrid

Figure contains an axes object. The axes object contains 4 objects of type line. This object represents H.

Input Arguments

collapse all

Damping ratio, specified as a vector in the same order aswn.

Normalized natural frequency, specified as a vector.

Object handle, specified as anAxesorUIAxesobject. UseAXto create apps withsgridin the App Designer.

H版istory

Introduced before R2006a

See Also

|(Control System Toolbox)|