Cody

Solution 947057

Submitted on 30 Aug 2016 by Abdullah Caliskan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
a = [1 5 2 7]; m = 10; y_correct = [1 2 2 2 2 2 3 3 4 4]; assert(isequal(your_fcn_name(a,m),y_correct))

E = 1 E = 1 2 2 2 2 2 E = 1 2 2 2 2 2 3 3 E = 1 2 2 2 2 2 3 3 4 4 4 4 4 4 4

2   Pass
a = [2 3 2 7 4 6]; m = 22; y_correct = [1 1 2 2 2 3 3 4 4 4 4 4 4 4 5 5 5 5 6 6 6 6]; assert(isequal(your_fcn_name(a,m),y_correct))

E = 1 1 E = 1 1 2 2 2 E = 1 1 2 2 2 3 3 E = 1 1 2 2 2 3 3 4 4 4 4 4 4 4 E = Columns 1 through 16 1 1 2 2 2 3 3 4 4 4 4 4 4 4 5 5 Columns 17 through 18 5 5 E = Columns 1 through 16 1 1 2 2 2 3 3 4 4 4 4 4 4 4 5 5 Columns 17 through 24 5 5 6 6 6 6 6 6

Suggested Problems

More from this Author3