GUI: Callback Function and visibility

18 visualizaciones (últimos 30 días)
Antonio
Antonio el 3 de Dic. de 2013
Comentada: Antonio el 3 de Dic. de 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 comentario
Antonio
Antonio el 3 de Dic. de 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)?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by