y_correct of Test case #1 is wrong; it requires [ ].
Case 1: [0;1]
test case 1 should be [0;1] ?
I cleaned up the problem statement and fixed the first test.
Thanks!
Not sure why type 'double' is invalid here. It worked in my MATLAB 2020b.
best among the best
Can we not use de2bi function?
Not what I would call "best": it is a Cody-specific hack.
Back to basics 17 - white space
245 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
Make a run-length companion vector
512 Solvers
Generate N equally spaced intervals between -L and L
565 Solvers
Create a Multiplication table matrix...
283 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!