Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1000;
y_correct = 1100;
assert(isequal(binary2gray(x),y_correct))
a =
1 0 0 0
ans =
1100
|
2 | Pass |
x = 0010;
y_correct = 0011;
assert(isequal(binary2gray(x),y_correct))
a =
1 0
ans =
11
|
3 | Pass |
x = 0011;
y_correct = 0010;
assert(isequal(binary2gray(x),y_correct))
a =
1 1
ans =
10
|
651 Solvers
348 Solvers
Create an n-by-n null matrix and fill with ones certain positions
268 Solvers
413 Solvers
2455 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!