how to remove the some ploted node and assisgn the new location in the 2d graph
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Ingrid
2015년 4월 24일
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
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!