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))
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13048 Solvers
Remove any row in which a NaN appears
6826 Solvers
548 Solvers
358 Solvers
57 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!