Produce Nichols plot of a system.
Inputs
Outputs
- sys
- System data structure (must be either purely continuous or discrete; see is_digital).
- w
- Frequency values for evaluation.
- if sys is continuous, then nichols evaluates G(jw).
- if sys is discrete, then nichols evaluates G(exp(jwT)), where T=sys. tsam is the system sampling time.
- the default frequency range is selected as follows (These steps are not performed if w is specified):
- via routine __bodquist__, isolate all poles and zeros away from w=0 (jw=0 or exp(jwT)=1) and select the frequency range based on the breakpoint locations of the frequencies.
- if sys is discrete time, the frequency range is limited to jwT in [0,2p*pi].
- A “smoothing” routine is used to ensure that the plot phase does not change excessively from point to point and that singular points (e.g., crossovers from +/- 180) are accurately shown.
- outputs
- inputs
- the names or indices of the output(s) and input(s) to be used in the frequency response; see sysprune.
If no output arguments are given, nichols plots the results to the screen. Descriptive labels are automatically placed. See xlabel, ylabel, and title.
- mag
- phase
- The magnitude and phase of the frequency response G(jw) or G(exp(jwT)) at the selected frequency values.
- w
- The vector of frequency values used.
Note: if the requested plot is for an MIMO system, mag is set to ||G(jw)|| or ||G(exp(jwT))|| and phase information is not computed.