# rad2deg {#rad2deg}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`rad2deg(X)`

## Arguments {#arguments}

**X** is a scalar/vector.

## Details {#details}

Convert angle units from radians to degrees for each element of *X*.

## Examples {#examples}

```
rad2deg(pi);
// output: 180
```

Related function: [deg2rad](../d/deg2rad.md)

