Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
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.

Antworten (1)

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

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by