Control the display of s-plane grid with :
The function state input may be either "on"
or "off"
for creating or removing the grid. If omitted, a new grid is created
when it does not exist or the visibility of the current grid is toggled.
The sgrid will automatically plot the grid lines at nice values or at constant values specified by two arguments :
sgrid (Z, W)
where Z and W are :
Example of usage:
sgrid on create the s-plane grid sgrid off remove the s-plane grid sgrid toggle the s-plane grid visibility sgrid ([0.3, 0.8, …], [10, 75, …]) create:
zeta lines for 0.3, 0.8, …
omega circles for 10, 75, … [rad/s]
sgrid (hax, "on"
) create the s-plane grid for the axis
handle hax
See also: grid.
The following code
clf; num = 1; den = [1 4 5 0]; sys = tf(num, den); rlocus(sys); sgrid on;
Produces the following figure
Figure 1 |
---|
The following code
clf; num = [1 3]; den = [1 5 20 16 0]; sys = tf(num, den); rlocus(sys); hfig = get(0, "currentfigure"); hax = get(hfig, "currentaxes"); sgrid(hax, "on");
Produces the following figure
Figure 1 |
---|
The following code
clf; num = 1; den = [1 4 5 0]; sys = tf(num, den); rlocus(sys); sgrid([0.5 0.7 0.89], [1 1.66 2.23]);
Produces the following figure
Figure 1 |
---|
Package: control