Hello
I have a matrix of size (500×6).
First 3 coloumns are the 3 co-ordinates and the last 3 are the corresponding vectors.
But the matrix has repeating co-ordinates (first 3 coloumns) which has either x-vector value (4th colomn and other vectors zeros) or y-vector value (5th colomn and other vectors zeros).
So how can I combine these repeating co-ordinates into one array so that it has corresponding x-vector, y-vector values.
(For ex. A = (1 2 3 574 0 0; 1 2 3 0 -95 0) to A = (1 2 3 574 -95 0 ) )
Thanks in advance
Best Answer