This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
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))
y =
1 1
1 2
y =
1 1
1 2
|
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))
y =
1 1
1 2
2 1
2 2
3 1
3 2
y =
1 1
1 2
2 1
2 2
3 1
3 2
|
1800 Solvers
381 Solvers
random picture with random colours
138 Solvers
306 Solvers
Check if number exists in vector
4465 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!