Cody

Solution 1025801

Submitted on 21 Oct 2016 by Abhishek Jain
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x=[2.2 2.6 2.4 2.4 2.8 2.2 2.6 2.7 2.4 2.7 2.6 2.5 2.6 2.5 2.6 2.5 2.4 3.0]; mi=max(x,[],1) [tmi,~]=find(x==repmat(mi,size(x,1),1)) tmi=tmi' [m,tm]=data_process(x) assert(isequal(tm,tmi)&isequal(m,mi))

mi = 2.7000 2.8000 3.0000 tmi = 4 2 6 tmi = 4 2 6 mi = 2.7000 2.8000 3.0000 tmi = 4 2 6 tmi = 4 2 6 m = 2.7000 2.8000 3.0000 tm = 4 2 6

2   Pass
x=[2.2 2.6 2.4 2.4 2.8 2.2 2.6 7.7 2.4 9.7 2.6 2.5 2.6 2.5 2.6 2.5 2.4 7.0]; mi=max(x,[],1) [tmi,~]=find(x==repmat(mi,size(x,1),1)) tmi=tmi' [m,tm]=data_process(x) assert(isequal(tm,tmi)&isequal(m,mi))

mi = 9.7000 7.7000 7.0000 tmi = 4 3 6 tmi = 4 3 6 mi = 9.7000 7.7000 7.0000 tmi = 4 3 6 tmi = 4 3 6 m = 9.7000 7.7000 7.0000 tm = 4 3 6