I need to perform certain operations on individual transfer functions. As an example,
sys=StateSpaceModel[{sysA,sysB,sysC,sysD}];
Tfsys=TransferFunctionModel[sys,s];
Now I extract the required transfer functions, say $P_1$ and $P_2$
P1=SystemsModelExtract[Tfsys,{1},{1}];
P2=SystemsModelExtract[Tfsys,{1},{2}];
Now I want to perform an operation like $\Gamma=P_2 (P_1)^{-1}$. So I use
T=SystemsModelSeriesConnect[P2,Inverse[P1]];
This gives me an error saying the first argument cannot be interpreted as a polynomial matrix in SystemsModelSeriesConnect[#1,#2]
I have tried writing it as $P_2.Inverse[P_1]$ but I cannot make it accept the argument. Additionally, I would need to do a lot of algebraic operations with the TransferFunctionModel which not always can be done with commands like SystemsModelSeriesConnect,SystemsModelParallelConnect, etc.
As you would have guessed, I am not too adept with the syntax in Mathematica, so please bear with my questions.
Inverse[]
works only on square matrices. $\endgroup$