This solution is outdated. To rescore this solution, sign in.
The command de2bi() is not working.
That is part of the Communication system toolbox which is currently not supported by Cody.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 2;
y_correct = [0 0;
0 1;
1 0;
1 1];
assert(isequal(your_fcn_name(x),y_correct))
|
2 | Fail |
x = 3;
y_correct = [0 0 0;
0 0 1;
0 1 0;
0 1 1;
1 0 0;
1 0 1;
1 1 0;
1 1 1];
assert(isequal(your_fcn_name(x),y_correct))
|
9840 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
214 Solvers
112 Solvers
236 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!