Cody

# Problem 2364. Convert a vector into numbers

Solution 1449380

Submitted on 25 Feb 2018 by GEORGIOS BEKAS
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
x = [1 2 3]; y_correct = '123'; assert(isequal(your_fcn_name(x),y_correct))

y = '1356' y = 0×0 empty char array y = '1' y = '12' y = '123'

2   Pass
x = [7 8 8 0 3]; y_correct = '78803'; y = your_fcn_name(x); assert(isequal(y_correct,y))

y = '1356' y = 0×0 empty char array y = '7' y = '78' y = '788' y = '7880' y = '78803'

3   Pass
x = [8 4]; y_correct = '84'; y = your_fcn_name(x); assert(isequal(y_correct,y))

y = '1356' y = 0×0 empty char array y = '8' y = '84'

4   Pass
x = [1 2 1 1 8 5]; y_correct = '121185'; y = your_fcn_name(x); assert(isequal(y_correct,y))

y = '1356' y = 0×0 empty char array y = '1' y = '12' y = '121' y = '1211' y = '12118' y = '121185'

5   Pass
x = [1 8 6 3]; y_correct = '1863'; y = your_fcn_name(x); assert(isequal(y_correct,y))

y = '1356' y = 0×0 empty char array y = '1' y = '18' y = '186' y = '1863'

6   Pass
x = [4 0 2 1]; y_correct = '4021'; y = your_fcn_name(x); assert(isequal(y_correct,y))

y = '1356' y = 0×0 empty char array y = '4' y = '40' y = '402' y = '4021'

7   Pass
x = [2 4]; y_correct = '24'; y = your_fcn_name(x); assert(isequal(y_correct,y))

y = '1356' y = 0×0 empty char array y = '2' y = '24'

8   Pass
x = 9; y_correct = '9'; y = your_fcn_name(x); assert(isequal(y_correct,y))

y = '1356' y = 0×0 empty char array y = '9'

### Community Treasure Hunt

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

Start Hunting!