isletter

Returns a boolean, logical matrix or cell array, whose value(s) are true if the corresponding elements of the input are letters and false, if otherwise.

Syntax

R = isletter(s)

Inputs

s
Type: Any finite scalar | string | mat | cell

Outputs

R
Type: logical | mat | cell

Examples

String input:
R = isletter('test123')
R = [Matrix] 1 x 7
1  1  1  1  0  0  0
Cell array input:
R = isletter({23, 'test123'})
R =
{
[1,1] 0
[1,2] [Matrix] 1 x 7
1  1  1  1  0  0  0
}