You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
ind=findduplicate(X) returns a linear index ind for duplicate records in X.
findduplicate treat each row in X as a record.
input:
-X: vector, array, table or timetable.
output:
-ind: linear index for duplicated records in X
tip: to find duplicate values in a matrix, use findduplicate(X(:))
Example:
findduplicate(string(
{'John','Waston';...
'Anna','Blei';...
'John','Waston'}
))
returns 3
Cite As
Liutong (2026). findduplicate(X) (https://www.mathworks.com/matlabcentral/fileexchange/62539-findduplicate-x), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (456 Bytes)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
