Read the feed forward matrix of a state space system
function ReadMatrixD2 input String fileName = DataDir + "abcd.mat" annotation( Dialog(loadSelector(filter = "MAT files (*.mat);; All files (*.*)", caption = "state space system data file"))); input String matrixName = "ABCD" "Name of the generalized state space system matrix"; input Integer nx "System order"; input Integer nu "number of inputs"; input Integer ny "number of outputs"; output Real D[ny, nu] = ABCD[nx + 1:nx + ny, nx + 1:nx + nu]; end ReadMatrixD2;