Discover MakerZone

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

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!

Problem 1069. Phoneword Translator

Created by @bmtran

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]


Problem Group

Solution Statistics

44 correct solutions 16 incorrect solutions
Last solution submitted on Aug 23, 2015

Problem Comments