Neighbors of a matrix
Show older comments
I want a way to write a code to find the neigbors of a 50 x 50 matrix
3 Comments
Matt J
on 1 Feb 2024
Which is defined how?
Walter Roberson
on 1 Feb 2024
Please expand on your question more. What form are you expecting the neighbors in ?
Suppose we use a smaller example, to understand your question. Here is a 5x5 matrix:
M = magic(5)
What do you mean by "the neighbors"? What exactly would the input and output be for your problem?
Answers (0)
Categories
Find more on Nearest Neighbors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!