functionfrequencyResponse
Compute frequency response based on zeros and poles
Information
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | gain | Gain of transfer function | |
| Real[:,2] | Zeros | Zeros as Real matrix (first column: real, second column imaginary values) | |
| Real[:,2] | Poles | Poles as Real matrix (first column: real, second column imaginary values) | |
| Integer | nPoints | 200 | Number of points |
| Boolean | autoRange | true | = true, if abszissa range is automatically determined |
| SI.Frequency | f_min | 0.1 | Minimum frequency value, if autoRange = false |
| SI.Frequency | f_max | 10 | Maximum frequency value, if autoRange = false |
| Boolean | Hz | true | = true, to compute abszissa in [Hz], otherwise in [rad/s] (= 2*pi*Hz) |
| Boolean | dB | false | = true, to compute magnitude in [], otherwise in [dB] (=20*log10(value)) |
| Boolean | logX | true | = true, to compute abszissa values for logarithmic scale |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[nPoints] | f | Frequency vector (either in Hz or rad/s) | |
| Real[nPoints] | A | Amplitude (either without unit or in dB) | |
| Modelica.Units.NonSI.Angle_deg[nPoints] | phi | Angles in degree |