Given an alphanumeric telephone number (Ex. 1-800-COLLECT), return the purely numeric phone number as a vector. This problem uses the US number associations as shown below

Example:
phoneword = '1-800-COLLECT';
phonenumber = phoneword2number(phoneword);outputs
phonenumber = [1 8 0 0 2 6 5 5 3 2 8]
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers60
Suggested Problems
-
Reverse the Words (not letters) of a String
476 Solvers
-
Back to basics 25 - Valid variable names
340 Solvers
-
Convert from Base 10 to base 5
306 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
104 Solvers
-
MATCH THE STRINGS (2 CHAR) very easy
301 Solvers
More from this Author56
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The image link is broken.
Apparently, it was fixed.