Cody

Solution 1553819

Submitted on 8 Jun 2018
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
a = [0 0 5 10]; b = [3 2 6 6]; c = [3 2 2 6]; assert(isequal(disputed_region(a,b),c))

Error: File: disputed_region.m Line: 2 Column: 5 Functions cannot be indexed using {} or . indexing. Error in Test1 (line 4) assert(isequal(disputed_region(a,b),c))

2   Fail
a = [0 1 2 3]; b = [-1 2 4 5]; c = [0 2 2 2]; assert(isequal(disputed_region(a,b),c))

Error: File: disputed_region.m Line: 2 Column: 5 Functions cannot be indexed using {} or . indexing. Error in Test2 (line 4) assert(isequal(disputed_region(a,b),c))

3   Fail
a = [3 4 6 1]; b = [2 1 2 2]; c = []; assert(isequal(disputed_region(a,b),c))

Error: File: disputed_region.m Line: 2 Column: 5 Functions cannot be indexed using {} or . indexing. Error in Test3 (line 4) assert(isequal(disputed_region(a,b),c))

4   Fail
a = [5 18 14 6]; b = [11 23 17 18]; c = [11 23 8 1]; assert(isequal(disputed_region(a,b),c))

Error: File: disputed_region.m Line: 2 Column: 5 Functions cannot be indexed using {} or . indexing. Error in Test4 (line 4) assert(isequal(disputed_region(a,b),c))

5   Fail
a = [100 97 3 2]; b = [99 93 12 12]; c = [100 97 3 2]; assert(isequal(disputed_region(a,b),c))

Error: File: disputed_region.m Line: 2 Column: 5 Functions cannot be indexed using {} or . indexing. Error in Test5 (line 4) assert(isequal(disputed_region(a,b),c))

6   Fail
delta = 0.5; a = [0 0 5 10]+delta; b = [3 2 6 6]+delta; c = [3 2 2 6]+delta; assert(isequal(disputed_region(a,b),c))

Error: File: disputed_region.m Line: 2 Column: 5 Functions cannot be indexed using {} or . indexing. Error in Test6 (line 5) assert(isequal(disputed_region(a,b),c))

7   Fail
a = [0 0 1 1]; b = [2 2 1 1]; c = []; assert(isequal(disputed_region(a,b),c))

Error: File: disputed_region.m Line: 2 Column: 5 Functions cannot be indexed using {} or . indexing. Error in Test7 (line 4) assert(isequal(disputed_region(a,b),c))