functionfrequencyResponseGain
Compute gain of a frequency response (system must be a SISO system)
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
frequencyResponseGain(A, B, C, D, Zeros, Poles)
Description
Compute the gain of a frequency response based on zeros and poles. The system must be a SISO system, i.e. size(D, 1) = size(D, 2) = 1.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,size(A, 1)] | A | A-matrix of linear state space system | |
| Real[size(A, 1),:] | B | B-matrix of linear state space system | |
| Real[:,size(A, 1)] | C | C-matrix of linear state space system | |
| Real[size(C, 1),size(B, 2)] | D | D-matrix of linear state space system | |
| Real[:,2] | Zeros | Zeros of state space system as Real matrix (first column: real, second column imaginary values) | |
| Real[:,2] | Poles | Poles of state space system as Real matrix (first column: real, second column imaginary values) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | gain | y(s) = gain*(s-z1)*(s-z2)*...*(s-zm)/((s-p1)*(s-p2)*...(s-pn)) |
Contents
| Name | Description |
|---|---|
| Get p on the real axis so that there is a minimum distance to all poles and zeros |