Cody

Problem 43282. Analyze observation data

Solution 1038867

Submitted on 30 Oct 2016 by Marc Jakobi
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
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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!