Undefined function highlight for input arguments of type digraph

18 ビュー (過去 30 日間)
Waseem Hussain
Waseem Hussain 2017 年 11 月 2 日
回答済み: KL 2017 年 11 月 2 日
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');

採用された回答

KL
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 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by