Remove close value for matrix
Show older comments
I have a matrix A with has dimension n x3
I want to remove the data values that are so close to certain value or repeated.
Let say A = [ 1 1 1; 1 1 1.5; 1.1 1.2 1 , so on ]
definitely they are closed and I cant use "unique" command because they are not repeated for all 3 values.
How to remove those value in certain distance: let say if the distance is less than or equal to .5, then remove that row. We can average those value that would be awesome all close value and replace it in the new matrix.
Note: A has unknown row, so it has to be a loop.
Accepted Answer
More Answers (1)
This one seems to be pretty popular
I'm sure you could browse the FEX for still more clustering algorithms.
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!