B = [0 1 1 1;...] % define adjacency matric of the graph
G = graph(B); plot h = G; highlight(h, 1, 'marker', 'v');
How do I delete the node highlighted so? I've tried things like "delete(findobj('marker','v')); ", but I am unable to achieve this. ( I want to delete just the the marker placed on the node, not the node itself)

 채택된 답변

Christine Tobler
Christine Tobler 2019년 4월 22일

0 개 추천

You can use highlight to set that marker to 'none'. The GraphPlot object h contains all the graphical properties of the plotted graph, so it's not possible to find a specific marker as a seperate object - all changes have to be made by changing the properties of the GraphPlot object h.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Animation에 대해 자세히 알아보기

질문:

2019년 4월 22일

댓글:

2019년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by