Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Popupmenu and axes questions using GUIDE

2 visualizzazioni (ultimi 30 giorni)
Christopher
Christopher il 14 Nov 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
Hello All,
I have a few questions about doing some tings in GUIDE. I have been searching around, but haven't been able to find much information, so I figured I would ask here.
1.) I have a popupmenu that I created and I would like to display images within the menu. Is this possible? For example, one of the items on the list says square and I would like to display an image of a square next to it, so it would be square imageofsquare.jpg. I would like to do this for all of the items in the popupmenu.
2.) I would like to make an axes that displays a grid of points and allows users to snap to these points and draw lines between them. I haven't found any tutorials on doing anything like this, Does anyone know of any tutorials on doing something like this? Or the best way of going about this?

Risposte (1)

Jan
Jan il 15 Nov 2014
For the first question see you question concering the same problem.
I do not know a tutorial concerning the 2nd question. There are several possible ways to implement this. You could use the ButtonDownFcn of line() objects to register if the use selects them with the mouse.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by