convert an array of alphabet letters into numbers ; A =a1, B =2, C = 3 etc.
23 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone can you have me solve this problem
i have a code change numbers into letters is
Alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
numbers = [3,6,12,1,1,3]
letters = Alphabet(numbers)
Can you give me a code change letters into numbers ?
Thanks you very much
0 件のコメント
採用された回答
madhan ravi
2020 年 7 月 4 日
Alphabet = ['C F L A A C' ];
[ii, lo] = ismember(Alphabet, 'A':'Z');
Numbers = lo(ii)
0 件のコメント
その他の回答 (1 件)
Kanupriya Singh
2020 年 7 月 4 日
I think using this code would help you out:
word = 'WELCOME'
double(word) - 64
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!