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))
|
232 Solvers
Back to basics 9 - Indexed References
392 Solvers
Generate N equally spaced intervals between -L and L
563 Solvers
Find the dimensions of a matrix
373 Solvers
134 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!