GUI: Callback Function and visibility

15 Ansichten (letzte 30 Tage)
Antonio
Antonio am 3 Dez. 2013
Kommentiert: Antonio am 3 Dez. 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 Kommentar
Antonio
Antonio am 3 Dez. 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)?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by