How do I access AppDesigner variables in a function that I write and call?
Afficher commentaires plus anciens
I am calling a function that I wrote from a GUI I designed with Appdesigner. I want to use many variables such as app.* in that function. I would rather not define a huge number of input variables for the function. I have used global variables in the past, use of global variables is not recommended by Matlab and teh global declaration gets a forbidding red underline. Is there an easy and compact way to access all the app.* variables functions called by the GUI designed in appdesigner?
Réponse acceptée
Plus de réponses (1)
So I'm understanding that you have written a function and want to call it from within your appdesigner app. You then want this function to have access to the variables within the app. If so, I think you can get what you want simply by passing app as an argument to your function.
Catégories
En savoir plus sur Desktop dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!