# deg2rad {#deg2rad}

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

## Syntax {#syntax}

`deg2rad(X)`

## Arguments {#arguments}

**X** is a scalar/vector.

## Details {#details}

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

## Examples {#examples}

```
deg2rad 45 90 180 360;
// output: [0.785398,1.570796,3.141593,6.283185]
```

