GUI: Callback Function and visibility

15 visualizzazioni (ultimi 30 giorni)
Antonio
Antonio il 3 Dic 2013
Commentato: Antonio il 3 Dic 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 Commento
Antonio
Antonio il 3 Dic 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)?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by