Search and select points form each quadrant
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello
How to select two or any number of nearest points from each quadrant?
I have point T and I want to select only two nearest points from each quadrant. 

0 comentarios
Respuestas (1)
darova
el 18 de Mzo. de 2020
You can use pdist2 for this purpose
D = pdist2([xt yt],[x(:) y(:)]);
ix = D < 1;
plot(x(ix),y(ix),'or')
hold on
plot(x,y,'.b')
hold off
0 comentarios
Ver también
Categorías
Más información sobre Multirate Signal Processing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!