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