Cody

# Problem 1682. Make a list string

Solution 2251202

Submitted on 3 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
x = {'apples' 'oranges' 'pears' 'salmon'}; y_correct = 'apples, oranges, pears and salmon.'; assert(isequal(make_list(x),y_correct))

w = 1×30 uint16 row vector Columns 1 through 29 97 112 112 108 101 115 44 32 111 114 97 110 103 101 115 44 32 112 101 97 114 115 44 32 115 97 108 109 111 Column 30 110 W = 7 16 23 w = 1×22 uint16 row vector 97 112 112 108 101 115 44 32 111 114 97 110 103 101 115 44 32 112 101 97 114 115 y = 'apples, oranges, pears and '

Assertion failed.

2   Fail
x = {'1' '23' '4' 'potatoes'}; y_correct = '1, 23, 4 and potatoes.'; assert(isequal(make_list(x),y_correct))

w = 1×18 uint16 row vector 49 44 32 50 51 44 32 52 44 32 112 111 116 97 116 111 101 115 W = 2 6 9 w = 1×8 uint16 row vector 49 44 32 50 51 44 32 52 y = '1, 23, 4 and '

Assertion failed.

### Community Treasure Hunt

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

Start Hunting!