# real

Returns the real part of `x`.

## Syntax

R = real(x)

## Inputs

`x`- Any valid scalar | vector | matrix.

## Outputs

- R
- Type: double

## Example

Simple input:

`R = real(1+2i)`

`R = 1`

Returns the real part of `x`.

R = real(x)

`x`- Any valid scalar | vector | matrix.

- R
- Type: double

Simple input:

`R = real(1+2i)`

`R = 1`