Main Content

y2s

Convert Y-parameters to S-parameters

Description

example

s_params = y2s(y_params,z0) converts Y-parameters to S-parameters.

Examples

collapse all

Define a matrix of Y-parameters.

Y11 =  0.0488133074245012 - 0.390764155450191i;
Y12 = -0.0488588365420561 + 0.390719345880018i;
Y21 = -0.0487261119282660 + 0.390851884427087i;
Y22 =  0.0487710062903760 - 0.390800401433241i;
y_params = [Y11,Y12; Y21,Y22];

Convert Y-parameters to S-parameters.

s_params = y2s(y_params)
s_params = 2×2 complex

   0.0038 + 0.0248i   0.9961 - 0.0250i
   0.9964 - 0.0254i   0.0037 + 0.0249i

Input Arguments

collapse all

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

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

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

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

  • Positive 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.

Output Arguments

collapse all

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

Version History

Introduced before R2006a

expand all

See Also

| | |