Cody

Solution 2090193

Submitted on 12 Jan 2020 by Asif Newaz
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
v = [1 2]; y_correct = [1 1; 1 2]; assert(isequal(count_to_v(v),y_correct))

a = 2 b = 2 y = 1 1 1 1

2   Pass
v = [3 2]; y_correct = [1 1; 1 2; 2 1; 2 2; 3 1; 3 2]; assert(isequal(count_to_v(v),y_correct))

a = 6 b = 2 y = 1 1 1 1 1 1 1 1 1 1 1 1

Suggested Problems

More from this Author1