How to create variable to use on more than one function in App Designer?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
LB
el 26 de Feb. de 2019
Comentada: LB
el 27 de Feb. de 2019
I am trying to design an app which contain (2 dropdown menu, 2 edit field, three buttons and axes) as component.
I want to collect the data that the user entered in menu and edit fields, then when each button clicked it will calculate some diffrent formulas and then show the result in the axes.
My question is how to create a variable to use in all the function and assign the value for it from the data entered in the GUI component?
I tried to define global variable, but I think there is more professional way to do that.
can you help me with this??
0 comentarios
Respuesta aceptada
Kevin Phung
el 26 de Feb. de 2019
Editada: Kevin Phung
el 26 de Feb. de 2019
https://www.mathworks.com/help/matlab/creating_guis/share-data-across-callbacks-in-app-designer.html
you can store values in the graphical objects 'Property' and just call it out again in another callback
app.Component.Property
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer 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!