Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1024;
b = 2;
y_correct = 10;
assert(isequal(logb(x,b),y_correct))
ans =
10
|
2 | Pass |
%%
x = 25;
b = 5;
y_correct = 2;
assert(isequal(logb(x,b),y_correct))
ans =
2
|
3 | Pass |
%%
x = 10000;
b = 10;
y_correct = 4;
assert(isequal(logb(x,b),y_correct))
ans =
4
|
17218 Solvers
312 Solvers
Set the array elements whose value is 13 to 0
939 Solvers
324 Solvers
Sum of odd numbers in a matrix
311 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!