# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

# s2s

Convert S-parameters to S-parameters with different impedance

## Syntax

```s_params_new = s2s(s_params,z0) s_params_new = s2s(s_params,z0,z0_new) ```

## Description

`s_params_new = s2s(s_params,z0)` converts the scattering parameters `s_params` with reference impedance `z0` into the scattering parameters `s_params_new` with a default reference impedance of 50 ohms. Both `s_params` and `s_params_new` are complex N-by-N-by-M arrays, representing M N-port S-parameters.

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

## 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 = -0.5039 + 0.1563i 0.0373 + 0.0349i 1.8929 + 3.2940i 0.4150 - 0.3286i ```

## Alternatives

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

## See Also

#### Introduced before R2006a

Was this topic helpful?

#### Four Steps to Building Smarter RF Systems with MATLAB

Download the whitepaper