Info

This question is closed. Reopen it to edit or answer.

GUIDE help

4 views (last 30 days)
Bilal
Bilal on 6 Apr 2011
Closed: MATLAB Answer Bot on 20 Aug 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

Answers (1)

Sean de Wolski
Sean de Wolski on 6 Apr 2011
doc setappdata
doc getappdata
doc guidata

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!