From Z-parameters to Y-parameters
In matrix form, the formula is
Y=Z−1
When dealing with 2 ports, we obtain
Y11Y12Y21Y22=Z11Z22−Z12Z21Z22=−Z11Z22−Z12Z21Z12=−Z11Z22−Z12Z21Z21=Z11Z22−Z12Z21Z11
The formulas are obtained with the methods explained here.
The MATLAB implementation can be found in circuitconversions on Gitlab.
Definitions
VV1⋮VN=ZII1⋮IN | II1⋮IN=YVV1⋮VN |