Read matrix from a matlab file
function fromFile extends Modelica.Icons.Function; import Modelica.Utilities.Streams; input String fileName = DataDir + "m.mat" annotation( Dialog(loadSelector(filter = "MAT files (*.mat);; All files (*.*)", caption = "matrix file"))); input String matrixName = "m" "Name of the matrix"; output Real A[n, m] = M; end fromFile;