Finding neighbours of an element in a matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Michael
am 13 Feb. 2012
can you define what you mean by "distance"? Each element would have four neighbours each with distance 1. Is the matrix sparse?
Antworten (1)
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!