
Help needed in highlight function # Im getting error dont know what is wrong please help
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sumith Kumar's S
el 12 de Abr. de 2020
Comentada: Sumith Kumar's S
el 12 de Abr. de 2020
a=[1 1 2 2 3 4 4 5 6 6 7 8];
b=[2 7 3 8 4 5 9 6 7 9 8 9];
c=[2 2 3 4 5 3 1 9 1 2 6 2]
H=graph(a,b,c);
p=plot(H,'EdgeLabel',H.Edges.Weight);
[sp,d]=shortestpath(H,1,5)
highlight(p,sp,'EdgeColour','black')
0 comentarios
Respuesta aceptada
Mehmed Saad
el 12 de Abr. de 2020
Editada: Mehmed Saad
el 12 de Abr. de 2020
MATLAB is an american software, so the spelling of Colour are different, it is Color
highlight(p,sp,'EdgeColor','black') % EdgeColour is not right

I changed the linewidth to make it visible
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!