Change color of line between two points based on third value
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Björn Sievers
el 13 de Ag. de 2021
Comentada: Björn Sievers
el 16 de Ag. de 2021
Hi everyone,
Maybe this question was already answered, but I am just not able to find it.
I would like to change the color of a line based on a certain property (e.g. link quality) associated to it.
As an example: I have several wireless radio devices in a network and when two devices have sufficient signal quality between them this is indicated as a connection by a line. Now I want to show the connection strength by a color, because some devices are closer to each other and therefore have a better signal quality between them. Using a for-loop I have filtered out the worst and best signal quality between all devices and the worst and best value should now be used as the limits of the coloring.
Here is what I have so far:
If the nodes are closer to each other the intensity increases and if they are further away from each other it the color should change
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/711387/image.png)
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Wireless Communications 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!