Cody

Solution 2266213

Submitted on 9 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 = [1 2 3 4 5 6 7;1 2 3 4 5 6 7]; y_correct = [1;1;2;2;3;3;4;4;5;5;6;6;7;7] assert(isequal(your_fcn_name(x),y_correct))

y_correct = 1 1 2 2 3 3 4 4 5 5 6 6 7 7

Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in your_fcn_name (line 2) y = [1;1;2;2;3;3;4;4;5;5,6;6;7;7] Error in Test1 (line 3) assert(isequal(your_fcn_name(x),y_correct))

Suggested Problems

More from this Author10