why 'de2bi()' & 'bi2de()' functions don't work here although they work in MATLAB online?!
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 10;
y_correct = 1010;
assert(isequal(dec_bin(x),y_correct))
|
2 | Fail |
x = 2;
y_correct = 10;
assert(isequal(dec_bin(x),y_correct))
|
3 | Fail |
x = 15;
y_correct = 1111;
assert(isequal(dec_bin(x),y_correct))
|
5703 Solvers
find the maximum element of the matrix
348 Solvers
413 Solvers
Sum of odd numbers in a matrix
311 Solvers
176 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!