Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x=[1 2 5];
y=[5 7 8];
y_correct = [8 7 5 2 1];
assert(isequal(unique_x(x,y),y_correct))
|
2 | Pass |
x=[1];
y=[1];
y_correct = [1];
assert(isequal(unique_x(x,y),y_correct))
|
3 | Pass |
x=[10];
y=[1];
y_correct = [10 1];
assert(isequal(unique_x(x,y),y_correct))
|
4 | Pass |
x=[1 5 8];
y=[2 4 6 4];
y_correct = [8 6 5 4 2 1];
assert(isequal(unique_x(x,y),y_correct))
|
Determine whether a vector is monotonically increasing
11922 Solvers
Find the two most distant points
1628 Solvers
Reverse the elements of an array
687 Solvers
Find out sum of prime number till given number
125 Solvers
Sum the squares of numbers from 1 to n
163 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!