findduplicate(X)

Version 1.0.0.0 (456 Bytes) von Liutong
find duplicate rows in a table, timetable or array.
36 Downloads
Aktualisiert 13 Apr 2017

Lizenz anzeigen

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

Zitieren als

Liutong (2024). findduplicate(X) (https://www.mathworks.com/matlabcentral/fileexchange/62539-findduplicate-x), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2016b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Tables finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0