Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 17;
y_correct = [1 1 0 0 1];
assert(isequal(dec2gray(x),y_correct))
ans =
1 1 0 0 1
|
2 | Pass |
x = 7;
y_correct = [1 0 0];
assert(isequal(dec2gray(x),y_correct))
ans =
1 0 0
|
3 | Pass |
x = 3;
y_correct = [1 0];
assert(isequal(dec2gray(x),y_correct))
ans =
1 0
|
4 | Pass |
x = 31;
y_correct = [1 0 0 0 0];
assert(isequal(dec2gray(x),y_correct))
ans =
1 0 0 0 0
|
14976 Solvers
152 Solvers
232 Solvers
171 Solvers
172 Solvers