Unique Rows for a cell array

Find unique rows of a cell array containing columns with strings or scalars, or N-D matrices

You are now following this Submission

unique(cA,'rows') does not work for cell arrays, the rows entry is ignored (at least as of 2009b). This function handles this case. It works for strings or scalars or both, but each column must contain only one or the other.

Cite As

Jim Hokanson (2026). Unique Rows for a cell array (https://au.mathworks.com/matlabcentral/fileexchange/25917-unique-rows-for-a-cell-array), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: uniqueCells

Categories

Find more on Operators and Elementary Operations in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Increased speed. Put in support for matrices. Put in options for the usual additional outputs for a "unique" function in Matlab.

1.0.0.0