.Modelica_LinearSystems2.TransferFunction.Analysis.observabilityMatrix

Information

Syntax

Q = TransferFunction.Analysis.observabilityMatrix(tf, method)

Description

Calculate the observability matrix

Q = [C; C*A; ...; C*A^(n-1)]

of the system corresponding state space system

der(x) = A*x + B*u;
    y  = C*x + D*u;

of a transfer function.

Example

  TransferFunction s = Modelica_LinearSystems2.TransferFunction.s();
  Modelica_LinearSystems2.TransferFunction tf=(s+1)/(s^2+s+1);

  Real Q[2,2];

algorithm
  Q := Modelica_LinearSystems2.TransferFunction.Analysis.observabilityMatrix(tf);
// Q = [1, 1, -1, 0]

Interface

encapsulated function observabilityMatrix
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.TransferFunction;
  input TransferFunction tf "transfer function of a system";
  output Real om[:, :];
end observabilityMatrix;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos