From B-parameters to H-parameters
In matrix form, the formula is
H=([000−1]B+[1000])([0100]B+[0010])−1
While for each element, we obtain
H11H12H21H22=−B11B12=B111=−B11B11B22−B12B21=−B11B21
The formulas are obtained with the methods explained here.
The MATLAB implementation can be found in circuitconversions on Gitlab.
Definitions
[V2−I2]=B[V1I1] | [V1I2]=H[I1V2] |