functionevaluate
Evaluate the corresponding transfer function at a given (complex) value of s
Information
Syntax
result = StateSpace.Analysis.evaluate(ss,s)
Description
Function Analysis.evaluate evaluates the corresponding transfer function of the state space system at a given (complex) value of s. The state space system is converted to the transfer function G(s)=N(s)/D(s), which is evaluated by calculating the numerator polynomial N(s) and the denominator polynomial D(s).
Example
Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
A=[-1],
B=[1],
C=[1],
D=[0]);
Complex s=Complex(1,1);
Complex result;
algorithm
result := Modelica_LinearSystems2.StateSpace.Analysis.evaluate(ss, s);
// result = 0.4 - 0.2*j
See also
StateSpace.Conversion.toTransferFunction, Math.Polynomial.evaluateComplex
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| StateSpace | ss | State space system | |
| Complex | s | Value of s where tf shall be evaluated | |
| Real | den_min | 0 | Minimum value of |denominator(s)| is limited by den_min |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Complex | result | = tf(s) |
Revisions
| Date | Author | Comment |
|---|---|---|
| 2010-05-31 | Marcus Baur, DLR-RM | Realization |