duplicated

identifies duplicated elements and counts each occurrences.

You are now following this Submission

I don't find builtin function to detect duplicates.
So, I wrote this function.

It determines which elements of an array or cell are duplicates of elements, and returns a logical vector indicating which elements (rows) are duplicates.

Cite As

wfH (2026). duplicated (https://in.mathworks.com/matlabcentral/fileexchange/81708-duplicated), 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.0.0