Multiple variable generated by one GUI element
Mostrar comentarios más antiguos
Hi everyone !
I'm running a programm to solve fluid mechanics equations with a GUI. I used the 'guide' tool to create it. Here is my problem:
I have several GUI windows to enter different types of parameters in order to solve my equations. I use the same GUI windows at different time in my program, for example with edit text boxes but I want to save each input in a different variable.
For example:
the first time I open my GUI figure, I enter 10 in the edit text box, it's saved as the 'x' variable.
Later in the programm I open the same GUI figure, but this time i want to save my input (20 for example) in a new variable 'x2'.
I hope I made my issue understanble !
Thanks for your help !
2 comentarios
Geoff Hayes
el 15 de Mayo de 2019
Chazaud - you may need to post some of your code. When you open the GUI a third time, will it overwrite one of the previous values or be a new value? If the latter, then I would just create an array in your handles structure from the parent GUI (?) that will store these different values.
CHAZAUD Mathilde
el 16 de Mayo de 2019
Respuesta aceptada
Más respuestas (1)
CHAZAUD Mathilde
el 20 de Mayo de 2019
Categorías
Más información sobre Scripts en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!