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

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.

Risposte (1)

2 Commenti

the two rows are not completely identical.Always one of them has more information
so you fix....any one number (may be the first column), get the indices and remove them.

Questa domanda è chiusa.

Tag

Richiesto:

il 6 Giu 2016

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by