Finding neighbours of an element in a matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Suppose that i have an element in a matrix and i need to find its neighbors and the distance of the neighbors...
i want to repeat this process for all elements in the matrix..
2 commentaires
Michael
le 13 Fév 2012
can you define what you mean by "distance"? Each element would have four neighbours each with distance 1. Is the matrix sparse?
Réponses (1)
Voir également
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox 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!