Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to set spesific numbers to letters of the alphabet. I have tried a code but this code set numbers to letters and accordeing to numbers returns spesific letters. I would like to create a code that will return numbers based on spesific letters (
Foe example I would like to find numbers with the letters of the word : HELLOW)

What I have tried:

I ve tried this:
clc
clear
Alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

numbers = [3,6,12,1,1,3]
letters = Alphabet(numbers)
Posted
Updated 29-Jan-21 22:44pm
Comments
Ralf Meier 30-Jan-21 5:10am    
I don't know anything about MatLab and so this comment could be not useful - but :
Have heard about the ASCII-Code of Characters ?
For example the ASC of "A" is 65, of "B" is 66 and so on ...
Perhaps it helps ...
Patrice T 30-Jan-21 5:13am    
Show samples input and output

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900