필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Removing duplicate observations in a Matrix where the rows are not completely identical

조회 수: 1 (최근 30일)
Hi,
I have Matrix A, where many rows are like in the attached image. column 1 is the id of the company and column 2 is the date of the data. How can I remove row 2,which is a duplicate of row 1 but row one has more complete data. The matrix is full with these rows that belong to the same company on the same date. Any help is greatly appreciated.

답변 (1개)

KSSV
KSSV 2016년 6월 7일
  댓글 수: 2
wesso Dadoyan
wesso Dadoyan 2016년 6월 7일
the two rows are not completely identical.Always one of them has more information
KSSV
KSSV 2016년 6월 7일
so you fix....any one number (may be the first column), get the indices and remove them.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by