How to compare non latin letters?

I would like to assign a number to a specific letter of name.
But the name is let say in Cyrillic 'Том'.
Now the isletter(Т) isnot a valid expression. Matlab does not understand its unicode 0442.
How to get around this ?

 Accepted Answer

>> %cyrillic
>> 'АБВГДЖЗ' - '0'
ans =
992 993 994 995 996 998 999
>> isletter('Ж')
ans =
logical
1
in R2016b and later

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Tags

No tags entered yet.

Asked:

Ole
on 31 Jul 2017

Answered:

on 31 Jul 2017

Community Treasure Hunt

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

Start Hunting!