This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 4 5];
pos = [0 2]
y_correct = 4;
assert(isequal(your_fcn_name(x,pos),y_correct))
2
pos =
0 2
ans =
2
|
2 | Pass |
x = [1 2 3 4 5; 6 7 8 9 0];
pos = [1 3];
y_correct = 9
assert(isequal(your_fcn_name(x,pos),y_correct))
y_correct =
9
|
Increment a number, given its digits
506 Solvers
196 Solvers
265 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
209 Solvers
Duplicate each element of a vector.
455 Solvers