Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1:10;
y_correct = 3:2:19;
assert(isequal(sumEachPair(x),y_correct))
|
2 | Pass |
x = [1:100]';
y_correct = [3:2:199]';
assert(isequal(sumEachPair(x),y_correct))
|
Select every other element of a vector
20359 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
278 Solvers
Find the largest value in the 3D matrix
1056 Solvers
Find out sum of all elements of given Matrix
349 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!