Removing double values from matrices

조회 수: 2 (최근 30일)
jgillis16
jgillis16 2016년 1월 30일
댓글: jgillis16 2016년 1월 30일
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?

답변 (1개)

John D'Errico
John D'Errico 2016년 1월 30일
You can find consolidator on the file exchange. It is designed to do exactly that.
  댓글 수: 1
jgillis16
jgillis16 2016년 1월 30일
The problem is that it seems consolidator only removes the duplicates, and doesn't have the option to add them together.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by