Undefined function highlight for input arguments of type digraph
20 次查看(过去 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!