uniquearray

Returns the unique parts of any array, including cell- and structure arrays, with any number of dimensions.
72 Downloads
Updated Sun, 03 Oct 2021 06:03:37 +0000

View License

Returns the unique elements/rows/columns/sheets/slices for an array that can be of any type, including cell- and structure arrays with mixed data, and have any number of dimensions.
Can optionally treat NaN’s as equal and return information about where repetitions occur.
Detailed help is included in the file.

Cite As

Patrik Forssén (2024). uniquearray (https://www.mathworks.com/matlabcentral/fileexchange/100134-uniquearray), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0

- Updated slice function after suggestion by Stephen
- Fixed calls to unique to handle two-dimensional string cells (unique does not work correctly for these)

1.0.0