Vlaue of Slider --> EditField

3 visualizaciones (últimos 30 días)
Kristin Habersang
Kristin Habersang el 19 de En. de 2021
Editada: Kristin Habersang el 5 de Mzo. de 2021
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

Respuesta aceptada

Image Analyst
Image Analyst el 19 de En. de 2021
I don't use app Designer, but isn't it something like
value = app.sliderName.Value;
app.EditField.String = sprintf('%.3f', value);
  7 comentarios
Kristin Habersang
Kristin Habersang el 28 de En. de 2021
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 el 29 de En. de 2021
What properties does it have? Did you ask:
properties(app.xEditField)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by