Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isletter

Array elements that are alphabetic letters

Syntax

tf = isletter('str')

Description

tf = isletter('str') returns an array the same size as str containing logical 1 (true) where the elements of str are letters of the alphabet and logical 0 (false) where they are not.

Examples

Find the letters in character array s.

s = 'A1,B2,C3';

isletter(s)
ans =
     1     0     0     1     0     0     1     0

Introduced before R2006a

Was this topic helpful?