Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [2 6 4 9 10 3 1 5];
y_correct = 7;
assert(isequal(min_fpos(x),y_correct))
t =
7
y =
7
|
2 | Pass |
x = [2 6 -4 9 10 3 -1 5];
y_correct = 3;
assert(isequal(min_fpos(x),y_correct))
t =
3
y =
3
|
3 | Fail |
x = [-4 6 -4 9 10 3 -1 5];
y_correct = 1;
assert(isequal(min_fpos(x),y_correct))
t =
1 3
y =
3
|
4 | Pass |
x = [0 6 0 9 -10 3 -1 5];
y_correct = 5;
assert(isequal(min_fpos(x),y_correct))
t =
5
y =
5
|
Find the alphabetic word product
2322 Solvers
337 Solvers
289 Solvers
Find Index of maximum Value and maximum Value of a vector
145 Solvers
Reverse the elements of an array
687 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!