.Modelica_LinearSystems2.StateSpace.'constructor'.fromReal

Information

Syntax

ss = StateSpace.'constructor'.fromReal(r)

Description

This function constructs a StateSpace record ss from a real value, i.e. a state-space system without a state and an output without dynamics:

y = r*u

Therefore, the matrices are defined by

ss.A = fill(0,0,0);
ss.B = fill(0,0,1);
ss.C = fill(0,1,0);
ss.D = [r];

Interface

function fromReal
  import Modelica;
  import Modelica_LinearSystems2.StateSpace;
  input Real r "Value of real variable";
  output StateSpace ss(redeclare Real A[0, 0], redeclare Real B[0, 1], redeclare Real C[1, 0], redeclare Real D[1, 1]) "= r";
end fromReal;

Generated at 2024-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos