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
인용 양식
Liutong (2024). findduplicate(X) (https://www.mathworks.com/matlabcentral/fileexchange/62539-findduplicate-x), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
- MATLAB > Language Fundamentals > Data Types > Tables >
Help Center 및 MATLAB Answers에서 Tables에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 |