From A-parameters to Y-parameters
In matrix form, the formula is
Y=([0010]A+[000−1])([1000]A+[0100])−1
While for each element, we obtain
Y11Y12Y21Y22=A12A22=−A12A11A22−A12A21=−A121=A12A11
The formulas are obtained with the methods explained here.
The MATLAB implementation can be found in circuitconversions on Gitlab.
Definitions
[V1I1]=A[V2−I2] | [I1I2]=Y[V1V2] |