evalfr (Control Design and Simulation Module, MathScript Function)
Member of the frqrsp class.
Syntax
gw = evalfr(SysIn)
gw = evalfr(SysIn, w)
Description
Calculates the magnitude and phase of a system model at a frequency you specify.
Inputs
Name | Description |
SysIn | Specifies a linear time-invariant (LTI) model in transfer function, zero-pole-gain, or state-space form. |
w | Specifies the frequency, in radians/second, at which this function evaluates the magnitude and phase of the SysIn model. The default value is 0. w is a complex scalar. |
Outputs
Name | Description |
gw | Returns the magnitude and phase of the SysIn model at frequency w. gw is a complex matrix. |
Examples
SysIn = ss(-1, 1, 1, 0)gw = evalfr(SysIn, 2i)