Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

GUIDE help

4 vues (au cours des 30 derniers jours)
Bilal
Bilal le 6 Avr 2011
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi, I'm trying to make a simple GUI using GUIDE which takes the data from the user in order to start a program which runs continuously and does what it has to do on it's own. The problem i'm having is declaring a variable that i can use in all the callback functions. for example, i have an edit box asking the user the enter the name of the file, then check boxes with names to select from. When the user does all this, i want to be able to take the file name they entered and the names of the people the selected using the checkboxes and input that into my main function. How can i do this? So far, i have realized that any variables i make are restricted to that specific function and i can't use them in other functions (variables i made in pushbutton callback can't be used in checkbox callback...). Can anyone help? Bilal

Réponses (1)

Sean de Wolski
Sean de Wolski le 6 Avr 2011
doc setappdata
doc getappdata
doc guidata

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by