functioneigenValues

Calculate the eigenvalues of a linear state space system and write them in a complex vector

Information

Syntax

eigenvalues = StateSpace.Analysis.eigenValues(ss)

Description

Calculate the eigenvalues of a state space system, i.e. the eigenvalues of the system matrix A of a state space system. The output is a complex vector containing the eigenvalues.

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1,1;-1,-1],
    B=[1;1],
    C=[1,1],
    D=[0]);

  Complex eigenvalues[2];

algorithm
  eigenvalues = Modelica_LinearSystems2.StateSpace.Analysis.eigenValues(ss);
// eigenvalues = {-1 + 1*j, -1 - 1*j}

Inputs

TypeNameDefaultDescription
StateSpacessState space system

Outputs

TypeNameDefaultDescription
Complex[size(ss.A, 1)]eigvaluesModelica_LinearSystems2.ComplexMathAdds.eigenValues(ss.A)Eigen values of the system