unique_no_sort

Like unique.m but without sorting

You are now following this Submission

Returns the unique elements of a vector, matrix or cell array in the order that they first appear in the input. Does not operate on rows like the original unique.m.

Cite As

Caitlin (2026). unique_no_sort (https://in.mathworks.com/matlabcentral/fileexchange/15209-unique_no_sort), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: concatStruct

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

I vectorized the calculation of 'pos' which results in a significant speed up for large matrices.