Problem 42790. Full combinations
It would be better if the test suite did not rely on a particular ordering of the rows. You could use isempty(setxor(myfullfact(...), y_correct, 'rows')) instead of isequal(...)
Thanks for your suggestion. But I prefer an "increasing" ordering of the rows because that could be more useful in some applications. I have made it clear in the problem description that ordering is required.
Problem Recent Solvers23
Find the longest sequence of 1's in a binary sequence.
Project Euler: Problem 8, Find largest product in a large string of numbers
middleAsColumn: Return all but first and last element as a column vector
Matrix multiplication across rows
More from this Author29
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!