impure functionreadRealMatrix
Read Real matrix from MATLAB MAT file
Extends from Modelica.Icons.Function (Icon for functions).
Information
Syntax
matrix = Streams.readRealMatrix(fileName, matrixName, nrow, ncol, verboseRead)
Description
Function readRealMatrix(..) 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 given matrix from this file. The dimensions of this matrix must first be inquired with function readMatrixSize and passed via arguments nrow and ncol to this function.
Example
See Examples.ReadRealMatrixFromFile.
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | fileName | File where external data is stored | |
| String | matrixName | Name / identifier of the 2D Real array on the file | |
| Integer | nrow | Number of rows of the 2D Real array | |
| Integer | ncol | Number of columns of the 2D Real array | |
| Boolean | verboseRead | true | = true: Print info message; = false: No info message |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[nrow,ncol] | matrix | 2D Real array |