Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
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.

Respuestas (1)

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

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by