isletter
Determine which characters are letters
Syntax
Description
TF = isletter(
returns a logical array
A
)TF
. If A
is a character array or string
scalar, then the elements of TF
are logical 1
(true
) where the corresponding characters in
A
are letters, and logical 0
(false
) elsewhere.
If A
is not a character array or string scalar, then
isletter
returns logical 0
(false
).
Examples
Input Arguments
Tips
To find letters within elements of a nonscalar string array, use the isstrprop
function.
Extended Capabilities
Version History
Introduced before R2006a