Cody

Solution 2007917

Submitted on 7 Nov 2019 by Nikolaos Nikolaou
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   Pass
a = 'i2am000jon'; y_correct = 'i am000jon' assert(isequal(str_num(a),y_correct))

y_correct = 'i am000jon' m = 1×4 cell array {'2'} {'0'} {'0'} {'0'} y = 'i am000jon'

2   Pass
a='manhattan' y_correct = 'manhattan' assert(isequal(str_num(a),y_correct))

a = 'manhattan' y_correct = 'manhattan' m = 0×0 empty cell array y = 'manhattan'

3   Pass
a='man345hatta0n01' y_correct = 'man 45hatta0n01' assert(isequal(str_num(a),y_correct))

a = 'man345hatta0n01' y_correct = 'man 45hatta0n01' m = 1×6 cell array {'3'} {'4'} {'5'} {'0'} {'0'} {'1'} y = 'man 45hatta0n01'

Suggested Problems

More from this Author42