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