Finding the 2 closest coordinates for a point
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hrushikesh kyathari
le 29 Juin 2019
Réponse apportée : darova
le 29 Juin 2019
I have got a 30 points in the set [-0.5,0.5]^2 in a matrix R generated from the random function. For each point, I need to find the 2 nearest points as well as the row number of the points. What should be done?
5 commentaires
Réponse acceptée
darova
le 29 Juin 2019
[D,I] = pdist2(X,Y,'euclidean','Smallest',1);
Im gonna be MVP (Most Valueble Person), maybe MathWorks will start to pay me. Accept my answer please
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Gaussian Process Regression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!