Read the input matrix of a state space system
function ReadMatrixB2 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"; output Real B[nx, nu] = ABCD[1:nx, nx + 1:nx + nu]; end ReadMatrixB2;