uniquearray

Returns the unique parts of any array, including cell- and structure arrays, with any number of dimensions.

You are now following this Submission

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 (2026). uniquearray (https://se.mathworks.com/matlabcentral/fileexchange/100134-uniquearray), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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