strlen

Syntax

strlen(X)

Arguments

X is a string scalar/vector.

Details

Return the length of each string in X.

Examples

strlen('abcdefg');
// output
7

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

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