Main Content

s2s

Convert S-parameters to S-parameters with different impedance

Description

s_params_new = s2s(s_params,z0) converts the scattering parameters with reference impedance z0 to the scattering parameters with a default reference impedance of 50 ohms.

s_params_new = s2s(s_params,z0,z0_new) converts the scattering parameters with reference impedance z0 into the scattering parameters with reference impedance z0_new.

example

Examples

collapse all

Define a matrix of S-parameters.

s_11 = 0.61*exp(1i*165/180*pi);
s_21 = 3.72*exp(1i*59/180*pi);
s_12 = 0.05*exp(1i*42/180*pi);
s_22 = 0.45*exp(1i*(-48/180)*pi);
s_params = [s_11 s_12; s_21 s_22];
z0 = 50;
z0_new = 40;

Convert to S-parameters with different impedance.

s_params_new = s2s(s_params,z0,z0_new)
s_params_new = 2×2 complex

  -0.5039 + 0.1563i   0.0373 + 0.0349i
   1.8929 + 3.2940i   0.4150 - 0.3286i

Input Arguments

collapse all

N-port S-Parameters, specified as an N-by-N-by-M array of complex numbers, where M represents the number of frequency points of N-port S-parameters.

Reference impedance in ohms, specified as one of the following:

  • Real scalar when you want to specify the same the reference impedance for all ports in the network.

  • Real vector of length N when you want to specify a different reference impedance for each port in the N-port network. (since R2023a)

  • Real vector of length K when you want to specify a different reference impedance for each in the K frequencies in the data. (since R2023a)

If the reference impedance is a vector and the number of ports N equals the number of data frequencies K, N == K, then the sparameters object will assign each element of the vector to each port of the network. To specify reference impedances for each frequency in this case, specify Z0 as a 3-D vector of length 1-by-1-by-K.

Reference impedance of S-parameters, specified as a real scalar or vector in ohms.

Output Arguments

collapse all

N-port hybrid S-parameters, returned as an N-by-N-by-M array of complex numbers, where M represents the number of frequency points of N-port hybrid S-parameters.

Alternatives

The newref function changes the reference impedance of S-parameters objects.

References

[1] Reveyrand, T. “Multiport Conversions between S, Z, Y, h, ABCD, and T Parameters.” 2018 International Workshop on Integrated Nonlinear Microwave and Millimetre-Wave Circuits (INMMIC), IEEE, 2018, pp. 1–3. DOI.org (Crossref), doi:10.1109/INMMIC.2018.8430023.

Version History

Introduced before R2006a

expand all

See Also

| | | | | | | | | | | |