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

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

Example:

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

outputs

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

Tags

Problem Group

Solution Statistics

34 correct solutions 14 incorrect solutions
Last solution submitted on Sep 16, 2014

Problem Comments