How to make Slider in APP Designer to move automatically with the output value we calculated?
3 ビュー (過去 30 日間)
古いコメントを表示
Nurliana Farhana Salehuddin
2022 年 2 月 23 日
コメント済み: Nurliana Farhana Salehuddin
2022 年 2 月 23 日
Dear MATLAB users,
I hope you can help me in suggesting the suitable code to make the GUI works. This is example how I would like the slider to function:
Given two inputs A and B. I write mathematical equation ex: A+B=C.
And I would like the slider to move automatically based on the value of C. Is it possible?
0 件のコメント
採用された回答
Kevin Holly
2022 年 2 月 23 日
Yes, you could make two Edit Field (Numeric) components, one for A and the other representing B.
You can add the following callbacks for the Edit Fields:
% Value changed function: EditField
function EditFieldValueChanged(app, event)
app.Slider.Value = app.EditField.Value+app.EditField2.Value;
end
% Value changed function: EditField2
function EditFieldValue2Changed(app, event)
app.Slider.Value = app.EditField.Value+app.EditField2.Value;
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!