Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Using nearest functiont?

1 回表示 (過去 30 日間)
will99
will99 2019 年 4 月 19 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have this huge matrix 500 by 500 I want to use nearest to find the 25 values that are nearest to X node
I did this but I'm not sure if it is correct when I displayed n I got more than 10 values
G= graph(A);
X= 238;
n = nearest(G,X,25);
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 19 日
As outside observers, we have no reason to expect that there would be 10 or fewer nodes within distance 25 of node 238.

回答 (0 件)

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by