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
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개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!