Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
wesso Dadoyan
wesso Dadoyan le 6 Juin 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
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.

Réponses (1)

KSSV
KSSV le 7 Juin 2016
  2 commentaires
wesso Dadoyan
wesso Dadoyan le 7 Juin 2016
the two rows are not completely identical.Always one of them has more information
KSSV
KSSV le 7 Juin 2016
so you fix....any one number (may be the first column), get the indices and remove them.

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by