Problem 1069. Phoneword Translator

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


    phoneword = '1-800-COLLECT';
    phonenumber = phoneword2number(phoneword);


    phonenumber = [1 8 0 0 2 6 5 5 3 2 8]

Solution Stats

67.61% Correct | 32.39% Incorrect
Last solution submitted on Jun 27, 2017

Problem Comments


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!