Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
v = 1:6;
n=3
vNew = 4:6;
assert(isequal(returnGreaterThan(v,n),vNew))
n =
3
ans =
4 5 6
|
2 | Pass |
%%
v = [10:-2:-10];
n=0
vNew = [10 8 6 4 2];
assert(isequal(returnGreaterThan(v,n),vNew))
n =
0
ans =
10 8 6 4 2
|
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
ans =
4.0000 3.1416 8.0000 91.0000
|
Matrix indexing with two vectors of indices
485 Solvers
Get the length of a given vector
3559 Solvers
Calculate distance travelled when given radius and rotations
182 Solvers
Matlab Basics II - Count rows in a matrix
255 Solvers
Matlab Basics II - Max & Index of Max
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!