From G-parameters to Y-parameters
In matrix form, the formula is
Y=([1000]G+[0001])([0001]G+[1000])−1
While for each element, we obtain
Y11Y12Y21Y22=G22G11G22−G12G21=G22G12=−G22G21=G221
The formulas are obtained with the methods explained here.
The MATLAB implementation can be found in circuitconversions on Gitlab.
Definitions
[I1V2]=G[V1I2] | [I1I2]=Y[V1V2] |