.Modelica_LinearSystems2.Internal.Streams.ReadMatrixD

Information

Syntax

D = Streams.ReadMatrixD(fileName, matrixName);

Description

Opens the given MATLAB MAT file and reads the matrix D of a state space system from this file.

Example

// Generate dslin.mat of the double pendulum example first
Modelica_LinearSystems2.Utilities.Import.linearize(
  "Modelica_LinearSystems2.Utilities.Plants.DoublePendulum", 1.0);

// Read D matrix of the linearized system
ReadMatrixD(dslin.mat, "ABCD")
//  = 
// [0.0;
// 0.0;
// 0.0;
// 0.0;
// 0.0;
// 0.0;
// 0.0;
// 0.0]

Interface

function ReadMatrixD
  extends partialReadStateSpaceMatrix;
  extends Modelica.Icons.Function;
  output Real D[ny, nu] = matrixABCD[nx + 1:nx + ny, nx + 1:nx + nu];
end ReadMatrixD;

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