Cody

# Problem 43282. Analyze observation data

Solution 1047405

Submitted on 7 Nov 2016
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   Fail
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 m = 2.7000 2.8000 3.0000

Undefined function 'index' for input arguments of type 'double'. Error in data_process (line 3) tm =index(max(x)) Error in TestPoint1 (line 11) [m,tm]=data_process(x)

2   Fail
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 m = 9.7000 7.7000 7.0000

Undefined function 'index' for input arguments of type 'double'. Error in data_process (line 3) tm =index(max(x)) Error in TestPoint2 (line 11) [m,tm]=data_process(x)