Cody

Solution 677011

Submitted on 28 May 2015 by Paul Berglund
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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))