Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Using nearest functiont?

1 visualizzazione (ultimi 30 giorni)
will99
will99 il 19 Apr 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commento
Walter Roberson
Walter Roberson il 19 Apr 2019
As outside observers, we have no reason to expect that there would be 10 or fewer nodes within distance 25 of node 238.

Risposte (0)

Questa domanda è chiusa.

Tag

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by