what the hell?why my code can work on my computer?while it report error here
It looks like your solution uses the symbolic math toolbox. I am assuming that that is not available to Cody solutions.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
x = 1024;
b = 2;
y_correct = 10;
assert(isequal(logb(x,b),y_correct))
Error: You may not use the command(s) eval in your code
|
2 | Fail |
%%
x = 25;
b = 5;
y_correct = 2;
assert(isequal(logb(x,b),y_correct))
Error: You may not use the command(s) eval in your code
|
3 | Fail |
%%
x = 10000;
b = 10;
y_correct = 4;
assert(isequal(logb(x,b),y_correct))
Error: You may not use the command(s) eval in your code
|
1901 Solvers
Back to basics 23 - Triangular matrix
634 Solvers
Make a random, non-repeating vector.
2808 Solvers
352 Solvers
Check that number is whole number
1071 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!