Slider in GUI
古いコメントを表示
Hello
I'm having trouble getting a slider to work in a GUI.
I currently have 1 slider in my GUI, that is suposed to change its values everytime a different variable is chosen in a popupmenu.
After a certain variable is chosen, the slider Min and Max properties would be changed to the variable Min and Max and the slider should run through all the variable values.
I've tried to change the slider Min, Max and Step properties by writing
set(handles.slider1,'Max',variableMax);
set(handles.slider1,'Min',variableMin);
but its not working.
Is it possible to make the slider work this way? And if it is, how can i do it?
Thanks in advance.
Sara
採用された回答
その他の回答 (1 件)
Sara Marques
2011 年 8 月 19 日
2 件のコメント
Paulo Silva
2011 年 8 月 19 日
When you set a value for the slider that is outside of its limits max and min that slider give the error and is invisible, always set a value inside the limits.
Sara Marques
2011 年 8 月 19 日
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!