Cody

Solution 2070919

Submitted on 27 Dec 2019
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
a = [ 3 2 4 ]; b = [ 1 1 1 2 2 2 3 0 3 0 0 4 ]; assert(isequal(your_fcn_name(a),b))

y1 = 4 m = [] y2 = 1 s = 1 2 3 0 m = 1 2 3 0 y2 = 2 s = 1 2 0 0 m = 1 2 3 0 1 2 0 0 m = 1 2 3 0 1 2 0 0 1 2 3 4

Output argument "b" (and maybe others) not assigned during call to "your_fcn_name". Error in Test1 (line 6) assert(isequal(your_fcn_name(a),b))

2   Fail
a = [1 0 8 9 14]; b =[ 1 0 1 1 1 0 0 2 2 2 0 0 3 3 3 0 0 4 4 4 0 0 5 5 5 0 0 6 6 6 0 0 7 7 7 0 0 8 8 8 0 0 0 9 9 0 0 0 0 10 0 0 0 0 11 0 0 0 0 12 0 0 0 0 13 0 0 0 0 14]; assert(isequal(your_fcn_name(a),b))

y1 = 14 m = [] y2 = 13 s = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 m = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 y2 = 14 s = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 m = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 y2 = 6 s = 1 2 3 4 5 6 7 8 0 0 0 0 0 0 m = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 8 0 0 0 0 0 0 y2 = 5 s = 1 2 3 4 5 6 7 8 9 0 0 0 0 0 m = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 8 0 0 0 0 0 0 1 2 3 4 5 6 7 8 9 0 0 0 0 0 m = 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7 8 0 0 0 0 0 0 1 2 3 4 5 6 7 8 9 0 0 0 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Output argument "b" (and maybe others) not assigned during call to "your_fcn_name". Error in Test2 (line 16) assert(isequal(your_fcn_name(a),b))

3   Fail
a = [ 4 2 4 ]; b =[ 1 1 1 2 2 2 3 0 3 4 0 4]; assert(isequal(your_fcn_name(a),b))

y1 = 4 m = [] m = 1 2 3 4 y2 = 2 s = 1 2 0 0 m = 1 2 3 4 1 2 0 0 m = 1 2 3 4 1 2 0 0 1 2 3 4

Output argument "b" (and maybe others) not assigned during call to "your_fcn_name". Error in Test3 (line 6) assert(isequal(your_fcn_name(a),b))

4   Fail
a= 1; assert(isequal(your_fcn_name(a),1))

y1 = 1 m = [] m = 1

Output argument "b" (and maybe others) not assigned during call to "your_fcn_name". Error in Test4 (line 3) assert(isequal(your_fcn_name(a),1))

5   Fail
a = []; assert(isequal(your_fcn_name(a),[]))

y1 = [] m = []

Output argument "b" (and maybe others) not assigned during call to "your_fcn_name". Error in Test5 (line 3) assert(isequal(your_fcn_name(a),[]))