Cody

Solution 2207193

Submitted on 12 Apr 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
A = [1 4 7 10 2 8]; range = 1; inrange = [1 0 1 0 1 1]; assert(isequal(isinrange(A, range),inrange))

Error in solution: Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "isinrange".)

2   Fail
A = [10 15 18 12 3 7 2]; range = 2; inrange = [1 0 0 1 1 0 1]; assert(isequal(isinrange(A, range),inrange))

Error in solution: Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "isinrange".)

3   Fail
A = [10 15 18 12 4 7 2]; range = 3; inrange = [1 1 1 1 1 1 1]; assert(isequal(isinrange(A, range),inrange))

Error in solution: Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "isinrange".)

4   Fail
A = [10 15 18 12 4 7 2]; range = 1; inrange = [0 0 0 0 0 0 0]; assert(isequal(isinrange(A, range),inrange))

Error in solution: Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "isinrange".)

Suggested Problems

More from this Author9