# s2y

Convert S-parameters to Y-parameters

## Syntax

``y_params = s2y(s_params,z0)``

## Description

example

````y_params = s2y(s_params,z0)` converts the scattering parameters `s_params` into the admittance parameters `y_params`. The `s_params` input is a complex N-by-N-by-M array, representing M N-port S-parameters. `z0` is the reference impedance; its default is 50 ohms. ```

## Examples

collapse all

Define the s-parameters and impedance.

```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;```

Convert the s-parameters to y-parameters.

`y_params = s2y(s_params,z0)`
```y_params = 2×2 complex 0.0647 - 0.0059i -0.0019 - 0.0025i -0.0826 - 0.2200i 0.0037 + 0.0145i ```

## Input Arguments

collapse all

N-port- S-Parameters, specified as a N-by-N-by-M array of a complex numbers, representing M N-port S-parameters.

Reference impedance of N-port S-Parameters, specified in positive real scalar as ohms.

### Note

`z0` must be a positive real scalar or vector. If `z0` is a vector, then the vector must be equal to the number of network parameter data points or frequency vector.

## Output Arguments

collapse all

N-port Y-Parameters, specified as a N-by-N-by-M array, representing M N-port Y-parameters.

## Alternatives

You can also use network parameter objects to perform network parameter conversions. For more information, see RF Network Parameter 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.