This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 2 4
6 0 3
4 1 5];
y_correct = [6 2 5
4 1 4];
assert(isequal(your_fcn_name(x),y_correct))
a =
6 2 5
4 1 4
1 0 3
|
Number of 1s in the Binary Representation of a Number
356 Solvers
613 Solvers
620 Solvers
Set some matrix elements to zero
290 Solvers
Sum the numbers on the main diagonal
453 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!