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 |
%%
A = 0;
B_correct = 0;
assert(isequal(min_by_mean(A),B_correct))
|
2 | Pass |
%%
A = 1;
B_correct = 1;
assert(isequal(min_by_mean(A),B_correct))
|
3 | Pass |
%%
A = [1,2,3,4;
2,3,4,5];
B_correct = [2.5000,2.0000,3.0000,4.0000;
3.5000,3.0000,4.0000,5.0000];
assert(isequal(min_by_mean(A),B_correct))
|
4 | Pass |
%%
A = [1,2,3,4,2,3,4,5];
B_correct = [3,2,3,4,2,3,4,5];
assert(isequal(min_by_mean(A),B_correct))
|
5 | Pass |
%%
A = [2,1,3,4;
3,2,4,5];
B_correct = [2.0000,2.5000,3.0000,4.0000;
3.0000,3.5000,4.0000,5.0000];
assert(isequal(min_by_mean(A),B_correct))
|
6063 Solvers
Convert a vector into a number
503 Solvers
How many trades represent all the profit?
520 Solvers
327 Solvers
127 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!