functionplotBodeSISO
Constructs a zeros-and-poles transfer function from state space representation and plots the Bode diagram with automatic determination of the frequency range to plot
Extends from Modelica.Icons.Function (Icon for functions).
Information
This example demonstrates the construnction of a zeros-and-poles-transfer-function from a SISO state space representation and plots the Bode diagrams with automatic determination of the frequency range to plot.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | systemOnFile | false | True, if state space system is defined on file |
| String | fileName | "NoName" | file where matrix [A, B; C, D] is stored |
| Real[:,size(A, 1)] | A | [-1.0, 0.0, 0.0; 0.0, -2.0, 0.0; 0.0, 0.0, -3.0] | |
| Real[size(A, 2),:] | B | [0.0, 1.0; 1.0, 1.0; -1.0, 0.0] | |
| Real[:,size(A, 1)] | C | [0.0, 1.0, 1.0; 1.0, 1.0, 1.0] | |
| Real[size(C, 1),size(B, 2)] | D | [1.0, 0.0; 0.0, 1.0] | |
| Integer | iu | 1 | Index of input |
| Integer | iy | 1 | Index of output |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | ok |