Input a length argument and list all possible logical vectors of that length.
My solution is of size 29. Can you find an even shorter one?
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers20
Suggested Problems
-
5039 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1263 Solvers
-
Max Change in Consecutive Elements
181 Solvers
-
1917 Solvers
-
3000 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!