image thumbnail


version 1.1.0 (3.51 KB) by Patrik Forssén
Returns the unique parts of any array, including cell- and structure arrays, with any number of dimensions.


Updated 03 Oct 2021

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 (2022). 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!