Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1;
y_correct = 1;
assert(isequal(bullseye(x),y_correct))
a =
1
|
2 | Pass |
%%
x = 3;
y_correct = [3 2 3; 2 1 2; 3 2 3];
assert(isequal(bullseye(x),y_correct))
a =
3 2 3
2 1 2
3 2 3
|
3 | Pass |
%%
x = 5;
y_correct = [5 4 3 4 5; 4 3 2 3 4; 3 2 1 2 3; 4 3 2 3 4; 5 4 3 4 5];
assert(isequal(bullseye(x),y_correct))
a =
5 4 3 4 5
4 3 2 3 4
3 2 1 2 3
4 3 2 3 4
5 4 3 4 5
|
556 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
780 Solvers
390 Solvers
Find Index of maximum Value and maximum Value of a vector
144 Solvers
Sum of odd numbers in a matrix
311 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!