Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
wesso Dadoyan
wesso Dadoyan 2016 年 6 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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