Problem 1488. Generate binary combinations for a given number of bit(s)
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Claudio Gelmi
on 4 May 2013
y_correct of Test case #1 is wrong; it requires [ ].
Richard Zapor
on 4 May 2013
Case 1: [0;1]
andrea84
on 5 May 2013
test case 1 should be [0;1] ?
Ned Gulley
on 6 May 2013
I cleaned up the problem statement and fixed the first test.
Claudio Gelmi
on 7 May 2013
Thanks!
Solution Comments
-
1 Comment
Lincoln Poon
on 21 Dec 2020
Not sure why type 'double' is invalid here. It worked in my MATLAB 2020b.
-
3 Comments
Suman Saha
on 11 May 2013
best among the best
Pavan Toraty
on 24 Oct 2013
Can we not use de2bi function?
David Verrelli
on 28 Jun 2018
Not what I would call "best": it is a Cody-specific hack.
-
2 Comments
Problem Recent Solvers90
Suggested Problems
-
262 Solvers
-
7148 Solvers
-
293 Solvers
-
5445 Solvers
-
355 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!