Path: Common/Control
% Generate a Nyquist plot from a statespace object or gain/phase data.
Type Nyquist for a demo.
--------------------------------------------------------------------------
Form:
[x,y] = Nyquist( g )
[x,y] = Nyquist( g, w )
[x,y] = Nyquist( g, w, iU, iY )
[x,y] = Nyquist( gain, phase )
--------------------------------------------------------------------------
------
Inputs
------
g (.) Statespace object (see "statespace")
w (.) Frequency vector [rad/s]
iU (1) Input index
iY (1) Output index
-or-
gain (1,:) Magnitude from frequency response (see "FResp")
phase (1,:) Phase from frequency response [deg]
-------
Outputs
-------
x (1,:) x-axis data, gain*cos(phase)
y (1,:) y-axis data, gain*sin(phase)
--------------------------------------------------------------------------