Cody

Solution 2635780

Submitted on 30 Jun 2020 by Ramesh Kumar V
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
v = 1:6; n=3 vNew = 4:6; assert(isequal(returnGreaterThan(v,n),vNew))

n = 3 ind = 1×6 logical array 0 0 0 1 1 1

2   Pass
v = [10:-2:-10]; n=0 vNew = [10 8 6 4 2]; assert(isequal(returnGreaterThan(v,n),vNew))

n = 0 ind = 1×11 logical array 1 1 1 1 1 0 0 0 0 0 0

3   Pass
v = [4 pi -2 0 -17000 8 91]; n=3 vNew = [4 pi 8 91]; assert(isequal(returnGreaterThan(v,n),vNew))

n = 3 ind = 1×7 logical array 1 1 0 0 0 1 1