Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
v = 1:6;
n=3
vNew = 4:6;
assert(isequal(returnGreaterThan(v,n),vNew))
n =
3
|
2 | Pass |
v = [10:-2:-10];
n=0
vNew = [10 8 6 4 2];
assert(isequal(returnGreaterThan(v,n),vNew))
n =
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
|
2401 Solvers
Flag largest magnitude swings as they occur
582 Solvers
Given a 4x4 matrix, swap the two middle columns
515 Solvers
find the roots of a quadratic equation
168 Solvers
327 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!