フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

GUI - Forward data inside an GUI

1 回表示 (過去 30 日間)
Thomas
Thomas 2012 年 10 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a GUI with two sliders and one button.
I want to store the slider positions inside the GUI, to be used in the button callback-function. Therefore I stored the data of the slider positions with "guidata" and tried to obtain these data again with the "guidata" command.
But now the problem occurs that both, slider one and two, have the same handle called "hObject". And if I want to obtain the data, I get only the last stored with "guidata" and it seems to be impossible to rename the handle of the sliders, e.g. in "hObject1" and "hObject2", so that "guidata" can distinguish between slider one and two.
Has someone a idea how I can store the values of the sliders and forward them to the button?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by