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