tf = ZerosAndPoles.Conversion.toStateSpacetoTransferFunctionMIMO(zp)
Converts a matrix of ZerosAndPoles transfer functions denoted by the product of first and second order numerator and denominator polynomials into a matrix of transfer functions represented by (usual) numerator and denominator polynomial. The function repetitively uses toTransferFunction.
ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p(); Modelica_LinearSystems2.ZerosAndPoles zp = [1/(p + 2)/(p + 1);p/(p + 1)/(p + 1)] algorithm tf := Modelica_LinearSystems2.ZerosAndPoles.Conversion.toTransferFunction(zp); // tf = [1/( (p + 1)*(p + 2) ); p/( (p + 1)^2 )]
encapsulated function toTransferFunctionMIMO import Modelica_LinearSystems2.ZerosAndPoles; import Modelica_LinearSystems2.TransferFunction; input ZerosAndPoles zp[:, :] "ZerosAndPoles transfer function of a system"; output TransferFunction tf[size(zp, 1), size(zp, 2)]; end toTransferFunctionMIMO;