# strlen {#strlen}

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

## Syntax {#syntax}

`strlen(X)`

## Arguments {#arguments}

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

## Details {#details}

Return the length of each string in X.

## Examples {#examples}

```
strlen('abcdefg');
// output: 7

strlen("I am a boy.");
// output: 11

strlen(["abc","123456789"]);
// output: [3,9]
```

