Pop-up menu multiple functions

1 visualización (últimos 30 días)
Lawrence Jarrett
Lawrence Jarrett el 19 de Mzo. de 2018
Comentada: Jan el 20 de Mzo. de 2018
I want to write multiple functions within MATLAB and use callback for each function in the pop-up menu. How can this be done?
  3 comentarios
Lawrence Jarrett
Lawrence Jarrett el 20 de Mzo. de 2018
Hello Jan, I wanted to design a GUI that was capable of displaying sine, cosine, sinc and exponential functions. I thought having a pop-up menu with all the functions included will be useful in the design of my GUI. The only thing was how i get to write a call back function for all the different functions within the pop-up menu.
Jan
Jan el 20 de Mzo. de 2018
It is worth to be nitpicking: You cannot write a "callback function for the different functions". Callbacks are related to GUI objects. So the popup-menu has a callback function, in which you can see by the property "Value" which item was selected. Then you can do with this information whatever you want. You did not explain what you want to be done by this callback, therefore I cannot suggest any code.
I assume you have an idea of what should happen at which action. If you need help with the implementation, post what you have written so far and explain, what you want to do.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre App Building en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by