Unique Rows for a cell array
Version 1.1.0.0 (2.98 KB) by
Jim Hokanson
Find unique rows of a cell array containing columns with strings or scalars, or N-D matrices
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 (2024). Unique Rows for a cell array (https://www.mathworks.com/matlabcentral/fileexchange/25917-unique-rows-for-a-cell-array), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Operators and Elementary Operations in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: uniqueCells
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.