Cody

# Problem 44737. Get the combinations

Solution 1740110

Submitted on 1 Mar 2019 by Martin C.
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
p=[10:15] q=[2:5] y_correct = [10 2; 11 2; 12 2; 13 2; 14 2; 15 2; 10 3; 11 3; 12 3; 13 3; 14 3; 15 3; 10 4; 11 4; 12 4; 13 4; 14 4; 15 4; 10 5; 11 5; 12 5; 13 5; 14 5; 15 5] assert(isequal(combineit(p,q),y_correct))

p = 10 11 12 13 14 15 q = 2 3 4 5 y_correct = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 10 5 11 5 12 5 13 5 14 5 15 5 y = [] y = 10 2 y = 10 2 11 2 y = 10 2 11 2 12 2 y = 10 2 11 2 12 2 13 2 y = 10 2 11 2 12 2 13 2 14 2 y = 10 2 11 2 12 2 13 2 14 2 15 2 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 10 5 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 10 5 11 5 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 10 5 11 5 12 5 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 10 5 11 5 12 5 13 5 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 10 5 11 5 12 5 13 5 14 5 y = 10 2 11 2 12 2 13 2 14 2 15 2 10 3 11 3 12 3 13 3 14 3 15 3 10 4 11 4 12 4 13 4 14 4 15 4 10 5 11 5 12 5 13 5 14 5 15 5

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!