# right {#right}

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

## Syntax {#syntax}

`right(X, n)`

## Arguments {#arguments}

**X** is a string scalar or vector.

**n** is a positive integer.

## Details {#details}

Return the last *n* characters of string *X*.

## Examples {#examples}

```
right("I love this game!", 6);


game!
```

