This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = unique([1 3 3 3 7 8 10 9]);
y_correct = 29;
assert(isequal(your_fcn_name(x),y_correct))
x = [31 -20 1 2 8 7]
y_correct = -22
assert(isequal(your_fcn_name(x),y_correct))
ans =
29
x =
31 -20 1 2 8 7
y_correct =
-22
ans =
-22
|
4107 Solvers
6283 Solvers
Back to basics 19 - character types
225 Solvers
Getting the indices from a vector
3212 Solvers
Are all the three given point in the same line?
270 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!