This example shows the computation of the poles and zeros of state space system.
function analysisEigenvalues extends Modelica.Icons.Function; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.DiscreteStateSpace; import Modelica_LinearSystems2.ComplexMathAdds.Vectors; input StateSpace ss = StateSpace(A = [-1, 1; -1, -1], B = [1; 1], C = [1, 1], D = [0]); input Modelica.Units.SI.Time Ts = 0.1 "Sample time"; input Modelica_LinearSystems2.Utilities.Types.Method method = Modelica_LinearSystems2.Utilities.Types.Method.StepExact "Discretization method"; end analysisEigenvalues;