Read the order nx of state matrix and the numbers nu and ny of inputs and outputs
function ReadSystemDimension2 import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.Internal.Streams; input String fileName = DataDir + "ss_siso.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"; output Integer xuy[3]; end ReadSystemDimension2;