DecimalToBinaryVector is regarded as undefined function ???
That's right, because there is no such thing. These are named something else.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
x = 76;
y_correct = 112;
assert(isequal(maxit(x),y_correct))
Error: Undefined function 'decimalToBinaryVector' for input arguments of type 'double'.
|
2 | Fail |
%%
x = 555;
y_correct = 992;
assert(isequal(maxit(x),y_correct))
Error: Undefined function 'decimalToBinaryVector' for input arguments of type 'double'.
|
3 | Fail |
%%
x = 1000;
y_correct = 1008;
assert(isequal(maxit(x),y_correct))
Error: Undefined function 'decimalToBinaryVector' for input arguments of type 'double'.
|
4 | Fail |
%%
x = 10000000;
y_correct = 16711680;
assert(isequal(maxit(x),y_correct))
Error: Undefined function 'decimalToBinaryVector' for input arguments of type 'double'.
|
Number of 1s in the Binary Representation of a Number
319 Solvers
265 Solvers
Sum of diagonal of a square matrix
1159 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
229 Solvers
209 Solvers