unique_no_sort

Version 1.0.0.0 (816 Bytes) by Caitlin
Like unique.m but without sorting
2.4K Downloads
Updated 7 Jun 2007

No License

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 (2024). unique_no_sort (https://www.mathworks.com/matlabcentral/fileexchange/15209-unique_no_sort), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Shifting and Sorting Matrices in Help Center and MATLAB Answers
Acknowledgements

Inspired: concatStruct

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

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