Cody

# Problem 532. Return unique values without sorting

Solution 1700539

Submitted on 30 Dec 2018 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct)) x = [9 2 2]; y_correct = [9 2]; assert(isequal(your_fcn_name(x),y_correct)) x = [-4 1 1]; y_correct = [-4 1]; assert(isequal(your_fcn_name(x),y_correct)) x = [42 1 1] y_correct = [42 1]; assert(isequal(your_fcn_name(x),y_correct)) x = [42 1 1 1 42 17 17]; y_correct = [42 1 17]; assert(isequal(your_fcn_name(x),y_correct))

p = 1 x = 1×0 empty double row vector i = 2 y = 1 p = 9 x = 2 2 i = 2 p = 9 2 x = 1×0 empty double row vector i = 3 y = 9 2 p = -4 x = 1 1 i = 2 p = -4 1 x = 1×0 empty double row vector i = 3 y = -4 1 x = 42 1 1 p = 42 x = 1 1 i = 2 p = 42 1 x = 1×0 empty double row vector i = 3 y = 42 1 p = 42 x = 1 1 1 17 17 i = 2 p = 42 1 x = 17 17 i = 3 p = 42 1 17 x = 1×0 empty double row vector i = 4 y = 42 1 17

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!