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