WriteRealMatrixToFile

Demonstrate usage of function Streams.writeRealMatrix

Information

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

Example model that shows how to write a Real matrix in MATLAB MAT format on file using function writeRealMatrix.

Parameters (1)

A

Value: [11, 12; 21, 22; 31, 32]

Type: Real[3,2]

Description: Matrix stored in different formats on files

Outputs (4)

success1

Type: Boolean

Description: = true if writing to Test_RealMatrix_v4.mat is successful

success2

Type: Boolean

Description: = true if appending to Test_RealMatrix_v4.mat is successful

success3

Type: Boolean

Description: = true if writing to Test_RealMatrix_v6.mat is successful

success4

Type: Boolean

Description: = true if writing to Test_RealMatrix_v7.mat is successful