As outside observers, we have no reason to expect that there would be 10 or fewer nodes within distance 25 of node 238.
Info
此问题已关闭。 请重新打开它进行编辑或回答。
Using nearest functiont?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!