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