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))
|
Project Euler: Problem 1, Multiples of 3 and 5
1491 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3615 Solvers
Cell Counting: How Many Draws?
581 Solvers
87 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!