Removing double values from matrices

I have two matrices, X and Y, which are essentially a set of coordinates. The problem is that some values in matrix Y have more than one value associated in the X matrix and these doubles appear without any order. Both matrices are approximately 5000 in length. I would like to add all the duplicate X values associated with one Y value together. Is there any way to do this?

Respuestas (1)

John D'Errico
John D'Errico el 30 de En. de 2016

0 votos

You can find consolidator on the file exchange. It is designed to do exactly that.

1 comentario

jgillis16
jgillis16 el 30 de En. de 2016
The problem is that it seems consolidator only removes the duplicates, and doesn't have the option to add them together.

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 30 de En. de 2016

Comentada:

el 30 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by