GUI: Callback Function and visibility

17 次查看(过去 30 天)
Antonio
Antonio 2013-12-3
评论: Antonio 2013-12-3
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 个评论
Antonio
Antonio 2013-12-3
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)?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by