This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = '0000';
y_correct = 0;
assert(isequal(one(x),y_correct));
ans =
0
|
2 | Pass |
x = '111';
y_correct = 3;
assert(isequal(one(x),y_correct));
ans =
3
|
3 | Pass |
x = '1100101';
y_correct = 4;
assert(isequal(one(x),y_correct));
ans =
4
|
Vectorize the digits of an Integer
236 Solvers
Find the maximum number of decimal places in a set of numbers
157 Solvers
Split a string into chunks of specified length
168 Solvers
Cell Counting: How Many Draws?
255 Solvers
Matlab Basics - y as a function of x
242 Solvers