convert an array of alphabet letters into numbers ; A =a1, B =2, C = 3 etc.
조회 수: 24 (최근 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!