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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!