encapsulated function transposeStateSpace import Modelica_LinearSystems2.StateSpace; input StateSpace ss "State space system"; output StateSpace sst = StateSpace(A = transpose(ss.A), B = transpose(ss.C), C = transpose(ss.B), D = transpose(ss.D), uNames = ss.yNames, yNames = ss.uNames); end transposeStateSpace;