Accelerating the pace of engineering and science

# Documentation Center

• Trials
• Product Updates

# 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.

## Alternatives

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

## Examples

Convert S-parameters from one reference impedance to another reference impedance:

```%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;
z0_new = 40;
%Convert to new reference impedance
s_params_new = s2s(s_params,z0,z0_new)```

## See Also

Was this topic helpful?