modelMATTest
MAT-file read test
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example model reads the table parameter from variable table1 of the HDF5-based MAT-file test_v7.3.mat. The table parameter is read as Real array of dimension 3x2 by function ExternData.MATFile.getRealArray2D. The read parameter is assigned by a parameter binding to the appropriate model parameter.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| ExternData.MATFile | dataSource | MAT file | |
| Integer | m | dataSource.getArrayRows2D("table1") | Number of rows in 2D array |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.TimeTable | timeTable |