WOLFRAM SYSTEM MODELER

readMatrixSize

Read dimensions of a Real matrix from a MATLAB MAT file

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.Streams.readMatrixSize"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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

Syntax

dim = readMatrixSize(fileName, matrixName)

Inputs (2)

fileName

Type: String

Description: File where external data is stored

matrixName

Type: String

Description: Name / identifier of the 2D Real array on the file

Outputs (1)

dim

Type: Integer[2]

Description: Number of rows and columns of the 2D Real array