Cody

Solution 2251207

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

w = 1×30 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 44 32 115 97 108 109 111 110 W = 7 16 23 b = 1×7 uint16 row vector 32 115 97 108 109 111 110 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 salmon.'

2   Pass
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 b = 1×9 uint16 row vector 32 112 111 116 97 116 111 101 115 w = 1×8 uint16 row vector 49 44 32 50 51 44 32 52 y = '1, 23, 4 and potatoes.'

Suggested Problems

More from this Author1