Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I convert a string of alphabetical characters to a vector of their numerical equivalent ie A->1, B->2 etc
1 次查看(过去 30 天)
显示 更早的评论
I need to find a way to quickly convert large lists of dictionary words into a vector of integers corresponding to the letters number in the alphabet (1-26). ie. 'BAT' -> [2 1 20]. What is the best way to achieve this result? Thanks in advance for your help!
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!