Remove similar values from matrix with tolerance value
Ältere Kommentare anzeigen
Help me please. I have this matrix, and I want to remove element (32,11) and (32,14) because it is close with (32,12). Can I do that?
Thank you.

4 Kommentare
Azzi Abdelmalek
am 28 Jun. 2019
You have to explain what is the meaning of close, (32,14) is close to (32,12), what about (37,20), is it close too ?
don't post your data as an image, we can't copy your data for testing
Dina Maulina
am 30 Jun. 2019
Guillaume
am 30 Jun. 2019
a few difference is not something easy to code. Computers are not able to read your mind or guess what a few difference is. Is 1 a few? Is 10 a few? Is 0.1 a few? Is 1 million a few (it might be compared to the number of atoms in the universe)?
An actual numeric tolerance (relative or absolute), on the other hand, is very easy to code.
Dina Maulina
am 30 Jun. 2019
Antworten (1)
KSSV
am 28 Jun. 2019
0 Stimmen
Read about pdist2. This will give pairwise distance . Now remove the points which you want to rmove by setting a tolerance in distance.
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!