Cody

Solution 2654231

Submitted on 5 Jul 2020
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
out = [3 4]; vec = [11 22 33 44]; thresh = 25; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test1 (line 4) assert(isequal(findIndices(vec, thresh),out))

2   Fail
out = [1 2]; vec = [33 44 11 22]; thresh = 25; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test2 (line 4) assert(isequal(findIndices(vec, thresh),out))

3   Fail
out = 5:10; vec = 10:10:100; thresh = 45; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4 b = 5 b = 6 b = 7 b = 8 b = 9 b = 10

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test3 (line 4) assert(isequal(findIndices(vec, thresh),out))

4   Fail
out = [1 3 4 6 8]; vec = [12 10 13 14 9 17 5 18]; thresh = 11; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4 b = 5 b = 6 b = 7 b = 8

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test4 (line 4) assert(isequal(findIndices(vec, thresh),out))

5   Fail
out = [1:3 7:9]; vec = [50 55 60 15 10 5 43 44 97 41]; thresh = 42; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4 b = 5 b = 6 b = 7 b = 8 b = 9 b = 10

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test5 (line 4) assert(isequal(findIndices(vec, thresh),out))

6   Fail
out = 5:8; vec = [10 12 14 16 18 20 22 23 7 8 9]; thresh = 17; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4 b = 5 b = 6 b = 7 b = 8 b = 9 b = 10 b = 11

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test6 (line 4) assert(isequal(findIndices(vec, thresh),out))

7   Fail
out = [2 4:5 8 12:14 16]; vec = [10 81 24 65 97 13 45 68 24 35 16 79 123 76 45 60]; thresh = 51; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4 b = 5 b = 6 b = 7 b = 8 b = 9 b = 10 b = 11 b = 12 b = 13 b = 14 b = 15 b = 16

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test7 (line 4) assert(isequal(findIndices(vec, thresh),out))

8   Fail
out = 1:2:9; vec = [11 9 12 8 13 7 14 6 15 5]; thresh = 10; assert(isequal(findIndices(vec, thresh),out))

a = [] b = 0 b = 1 b = 2 b = 3 b = 4 b = 5 b = 6 b = 7 b = 8 b = 9 b = 10

Output argument "out" (and maybe others) not assigned during call to "findIndices". Error in Test8 (line 4) assert(isequal(findIndices(vec, thresh),out))