Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = '0001';
assert(isequal(bin2bcd(x),y_correct))
|
2 | Pass |
x = 5;
y_correct = '0101';
assert(isequal(bin2bcd(x),y_correct))
|
3 | Pass |
x = 12;
y_correct = '00010010';
assert(isequal(bin2bcd(x),y_correct))
|
4 | Pass |
x = 156;
y_correct = '000101010110';
assert(isequal(bin2bcd(x),y_correct))
|
Find the sum of all the numbers of the input vector
25676 Solvers
Return unique values without sorting
488 Solvers
Matrix indexing with two vectors of indices
408 Solvers
Find the maximum number of decimal places in a set of numbers
157 Solvers
1245 Solvers