Undefined function highlight for input arguments of type digraph
조회 수: 19 (최근 30일)
이전 댓글 표시
Hi I keep getting this error, no idea how to fix it. This is my code
G = digraph(DG,Names);
P = plot(G,'XData',x,'YData',y);
V = shortestpath(G,'1','3');
highlight(G,V,'EdgeColor','r');
댓글 수: 0
채택된 답변
KL
2017년 11월 2일
You pass the plot handle P as the parameter to highlight. This is what I showed you yesterday.
highlight(P,V,'EdgeColor','r');
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!