Undefined function highlight for input arguments of type digraph
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Waseem Hussain
el 2 de Nov. de 2017
Respondida: KL
el 2 de Nov. de 2017
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 comentarios
Respuesta aceptada
KL
el 2 de Nov. de 2017
You pass the plot handle P as the parameter to highlight. This is what I showed you yesterday.
highlight(P,V,'EdgeColor','r');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Graph and Network Algorithms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!