GUI: Callback Function and visibility

4 views (last 30 days)
Antonio
Antonio on 3 Dec 2013
Commented: Antonio on 3 Dec 2013
I've created a push button than open a pop up wibndow. the user can input some numbers and save them in a array-variable called datax.
How can i use this datas to call another function pressing another pushbutton? Matlab shows me an error that i think it is something about visibility.
  1 Comment
Antonio
Antonio on 3 Dec 2013
for example:
function togglebutton1_Callback(hObject, eventdata, handles)
x = inputdlg('Enter space-separated numbers:', 'points', [1 50]);
datax = str2num(x{:});
function togglebutton2_Callback(hObject, eventdata, handles)
how to pass datax value to togglebutton2_Callback (to print datax pushing togglebutton2 for example)?

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!