Vlaue of Slider --> EditField

조회 수: 3 (최근 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 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