.Modelica.Utilities.Streams.readMatrixSize

Information

Syntax

dim = Streams.readMatrixSize(fileName, matrixName)

Description

Function readMatrixSize(..) opens the given MATLAB MAT file (in format v4, v6, v7, and if HDF is supported in the Modelica tool, also v7.3), and reads the dimensions of the given Real matrix. These dimensions are returned in the Integer vector dim.

Example

See Examples.ReadRealMatrixFromFile.

See also

readRealMatrix, writeRealMatrix

Interface

impure function readMatrixSize
  extends Modelica.Icons.Function;
  input String fileName "File where external data is stored" annotation(
    Dialog(loadSelector(filter = "MATLAB MAT files (*.mat)", caption = "Open MATLAB MAT file")));
  input String matrixName "Name / identifier of the 2D Real array on the file";
  output Integer dim[2] "Number of rows and columns of the 2D Real array";
end readMatrixSize;

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