Cody

Problem 1069. Phoneword Translator

Solution 2283860

Submitted on 15 May 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
assert(isequal(phoneword2number('1-800-COLLECT'),[1 8 0 0 2 6 5 5 3 2 8]))

Error in solution: Line: 5 Column: 31 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
assert(isequal(phoneword2number('1-800-CONTACTS'),[1 8 0 0 2 6 6 8 2 2 8 7]))

Error in solution: Line: 5 Column: 31 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
assert(isequal(phoneword2number('1800FLOWERS'),[1 8 0 0 3 5 6 9 3 7 7]))

Error in solution: Line: 5 Column: 31 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
assert(isequal(phoneword2number('800-BUSINESS'),[8 0 0 2 8 7 4 6 3 7 7]))

Error in solution: Line: 5 Column: 31 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Suggested Problems

More from this Author56

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!