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 LinuxCategories
Find more on Shifting and Sorting Matrices in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: concatStruct
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | I vectorized the calculation of 'pos' which results in a significant speed up for large matrices. |