Isletter2

Version 1.0.0.0 (763 octets) par Jerome Briot
Enhancement of the built-in function ISLETTER
822 téléchargements
Mise à jour 9 nov. 2006

Aucune licence

For a string STR, ISCAPLETTER(STR) returns a vector with 1 for capital letters, -1 for small letters and 0 otherwise.

ISLETTER2(STR,'all') returns 1 if all components of STR are letters.

ISLETTER2(STR,'any') returns 1 if any component of STR is a letter.

Ex:
str='Matlab R12.1';

is_isletter=isletter(str);
is_isletter2=isletter2(str);
is_isletter2_all=isletter2(str,'all');
is_isletter2_any=isletter2(str,'any');

is_isletter =
1 1 1 1 1 1 0 1 0 0 0 0

is_isletter2 =
1 -1 -1 -1 -1 -1 0 1 0 0 0 0

is_isletter2_all =
0

is_isletter2_any =
1

Citation pour cette source

Jerome Briot (2024). Isletter2 (https://www.mathworks.com/matlabcentral/fileexchange/12930-isletter2), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R12.1
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur File Name Construction dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0

Complete modification from the review by Jos