Main Content

# s2z

Convert S-parameters to Z-parameters

## Syntax

``z_params = s2z(s_params,z0)``

## Description

example

````z_params = s2z(s_params,z0)` converts the scattering parameters to the impedance parameters. ```

## Examples

collapse all

Define a matrix of S-parameters.

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

Convert S-parameters to Z-parameters.

`z_params = s2z(s_params,z0)`
```z_params = 2×2 complex 102 × 0.1141 + 0.1567i 0.0352 + 0.0209i 2.0461 + 2.2524i 0.7498 - 0.3803i ```

## Input Arguments

collapse all

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

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

Note

`z0` can 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.

## Output Arguments

collapse all

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

## See Also

Introduced before R2006a

Download ebook