How do I create an interactive connected graph in MATLAB GUI
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I want to create a connected graph in Matlab GUI. All the nodes of the graph are buttons which changes its color when clicked. Adding the buttons in GUI is easy but how do I add the lines between any 2 nodes depending on the adjaceny matrix?
Example of such a graph:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151764/image.png)
2 comentarios
Respuestas (1)
Sreeram Mohan
el 7 de Jul. de 2015
Hi Jigar,
Have you tried looking at properties of the button i.e. set or get properties and may be there is one related to the current location of the pushbutton. You could use that to draw a line between the positions returned. I have not tried this but could be an approach to try !!
--sreeram
0 comentarios
Ver también
Categorías
Más información sobre Specifying Target for Graphics Output 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!