Main Content

isletter

Determine which characters are letters

Description

example

TF = isletter(A) returns a logical array where the elements are logical 1 (true) where the corresponding characters in A are letters, and logical 0 (false) where the characters are not letters.

Note

Only Stateflow® charts that use MATLAB® as the action language support the isletter operator.

Examples

expand all

h = "Hello, world!"
x = isletter(h)

Stateflow chart that uses the isletter operator in a state.

Results from stateflow chart that uses the isletter operator in a state.

Limitations

Introduced in R2021b