How to identify biggest location plot of random plotting
Mostrar comentarios más antiguos
I have a random plot and distance calculation. How can I identfy and inform the nodes which has a largest plot data to create one node in the middle of the group.
I know the distance of the node from A to BS. But I cant figure how to tell other node of A which location has many nodes and create 1 middle node but still close to BS.
I tried using range, min and max but the result only show which is far or close to the BS.
n = 50;
A =rand (n,2)*5;
BS = [2.5 2.5];
Dist = sqrt(sum((BS - A) .^ 2, 2));
plot(A(:,1), A(:,2), '.'); hold on %random plot
plot(BS(:,1), BS(:,2), '*','MarkerSize',10);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!