Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to remove the some ploted node and assisgn the new location in the 2d graph

1 visualización (últimos 30 días)
singh
singh el 24 de Abr. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
suppose i create a network. and some percent of nodes will be move at near place on 2d graph.
now i wish to 25 percent of node N will be remove after for loop one time run and these node will updates its location with the X2 value and Y2 value and this whole process run 1 to 4 times.. thanks in advance

Respuestas (1)

Ingrid
Ingrid el 24 de Abr. de 2015
you need to use a handle when plotting the node
plotHandle(i) = plot(X(i),Y(i));
Then later you can use
deleta(plotHandle(i))
plotHandle(i) = plot(Xnew(i),YplotNew(i));
which will "move" the point
  3 comentarios
singh
singh el 24 de Abr. de 2015
how to change the value of 25% of node(1-5) acording to value X2,Y2 and remaining nodes have same cordinate values which are store in the X1.
Ingrid
Ingrid el 24 de Abr. de 2015
it is not clear to me why you cannot plot the data and store the handle to this plot. It is exactly the same command that will be performed as in the code you have now. Did you try this solution to see how it functions?

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by