# y2abcd

Convert Y-parameters to ABCD-parameters

## Syntax

```abcd_params = y2abcd(y_params) ```

## Description

`abcd_params = y2abcd(y_params)` converts the admittance parameters `y_params` into the ABCD-parameters `abcd_params`. The `y_params` input is a complex 2N-by-2N-by-M array, representing M 2N-port Y-parameters. `abcd_params` is a complex 2N-by-2N-by-M array, representing M 2N-port ABCD-parameters. The output ABCD-parameters matrices have distinct A, B, C, and D submatrices:

`$\left[\begin{array}{cc}\left[A\right]& \left[B\right]\\ \left[C\right]& \left[D\right]\end{array}\right]$`

## 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 to ABCD-parameters

`abcd_params = y2abcd(y_params)`
```abcd_params = 2×2 complex 0.9999 + 0.0001i 0.3141 + 2.5194i -0.0000 + 0.0000i 0.9998 + 0.0002i ```

## Alternatives

You can also use network parameter objects to perform network parameter conversions. For more information, see RF Network Parameter Objects.