Code covered by the BSD License
4.0
by Wolfgang Schwanghart
19 Oct 2007 (Updated 19 Oct 2007)
returns neighbors of cells in n*m matrices
| Watch this File
ixneighbors returns indices of neighbor cells and may be used to create adjacency matrices, thereby handling NaNs.
Useful function for anyone doing raster processing in Matlab. Performed exactly like it said. Thanks Wolfgang!
Contact us at files@mathworks.com