ixneighbors returns indices of neighbor cells and may be used to create adjacency matrices, thereby handling NaNs.
Wolfgang Schwanghart (2022). neighbor indexing (https://www.mathworks.com/matlabcentral/fileexchange/16991-neighbor-indexing), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!