From S-parameters to S-parameters
In matrix form, the formula is
TODO
When dealing with 2 ports, we obtain
S=S
The formulas are obtained with the methods explained here.
The MATLAB implementation can be found in circuitconversions on Gitlab.
Definitions
| BB1⋮BN=SAA1⋮AN | BB1⋮BN=SAA1⋮AN |
The incident and reflected waves are defined as
A=K(V+Z0I)B=K(V−Z0I)
where K and Z0 are defined as
K=k1⋱kNZ0=Z0,1⋱Z0,N
with Z0,i the reference impedance for port i and ki defined as
ki=2ℜ(Z0,i)1ki=α2∣Z0,i∣ℜ(Z0,i)
depending on whether you are using power- or pseudowaves.