Vlaue of Slider --> EditField

1 回表示 (過去 30 日間)
Kristin Habersang
Kristin Habersang 2021 年 1 月 19 日
編集済み: Kristin Habersang 2021 年 3 月 5 日
Hello I didnt found out how to get the value of the Slider to the EditField, and the other way around. Can somebody help me? I am using MATLAB2020b and the App designer, so I don´t have one of these so called "handles" anymore and they are used in every tutorial. thank you

採用された回答

Image Analyst
Image Analyst 2021 年 1 月 19 日
I don't use app Designer, but isn't it something like
value = app.sliderName.Value;
app.EditField.String = sprintf('%.3f', value);
  7 件のコメント
Kristin Habersang
Kristin Habersang 2021 年 1 月 28 日
Thank you for your answer :)
So the sine and the cosine works well, it's really just the problem with the slider. When I want to move the slider I get this error notification:
Do you know what I should try next? :)
Image Analyst
Image Analyst 2021 年 1 月 29 日
What properties does it have? Did you ask:
properties(app.xEditField)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by