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

TypeNameDefaultDescription
ExternData.MATFiledataSourceMAT file
IntegermdataSource.getArrayRows2D("table1")Number of rows in 2D array

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.TimeTabletimeTable