Vlaue of Slider --> EditField

3 次查看(过去 30 天)
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 CenterFile 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!

Translated by