Finding neighbours of an element in a matrix
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Michael
2012 年 2 月 13 日
can you define what you mean by "distance"? Each element would have four neighbours each with distance 1. Is the matrix sparse?
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!