Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = magic(6);
y_correct = [8 28 33 17 10 15;30 5 34 12 14 16;4 36 29 13 18 11]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
8 28 33 17 10 15
30 5 34 12 14 16
4 36 29 13 18 11
|
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
Set the array elements whose value is 13 to 0
939 Solvers
188 Solvers
521 Solvers
505 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!