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