Neighbors of a matrix

2 ビュー (過去 30 日間)
Prince
Prince 2024 年 2 月 1 日
コメント済み: the cyclist 2024 年 2 月 1 日
I want a way to write a code to find the neigbors of a 50 x 50 matrix
  3 件のコメント
Walter Roberson
Walter Roberson 2024 年 2 月 1 日
Please expand on your question more. What form are you expecting the neighbors in ?
the cyclist
the cyclist 2024 年 2 月 1 日
Suppose we use a smaller example, to understand your question. Here is a 5x5 matrix:
M = magic(5)
M = 5×5
17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9
What do you mean by "the neighbors"? What exactly would the input and output be for your problem?

サインインしてコメントする。

回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by