This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [ 4 3
5 1
5 1];
y_correct = [4;5;5;3;1;1];
assert(isequal(your_fcn_name(x),y_correct))
ans =
4
5
5
3
1
1
|
Number of 1s in a binary string
2819 Solvers
382 Solvers
Deleting an element in a matrix
325 Solvers
615 Solvers
Finding perimeter of a rectangle
278 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!