how can i change the value of a variable with a slider in matlab designer?
Ältere Kommentare anzeigen
hello, i want to change a value of a variable in my matlab script while running it with a slider that i build in matlab designer.
im quit new to designer, can anyone help me out?
Thanks in advance
1 Kommentar
David Hill
am 8 Sep. 2022
Did you look at uislider
Antworten (2)
Here is a doc page talking about the general process of writing component callbacks in appdesigner. In this particular section, there is an example dealing with a slider callback.
1 Kommentar
Matlab_Beginner
am 8 Sep. 2022
Bearbeitet: Matlab_Beginner
am 9 Sep. 2022
Steven Lord
am 9 Sep. 2022
0 Stimmen
Rather than changing the value of a fixed variable I would likely retrieve the Value property of the slider object whenever I need to use its value. This way I would be sure to always have the current value of the slider.
1 Kommentar
Matlab_Beginner
am 12 Sep. 2022
Bearbeitet: Matlab_Beginner
am 12 Sep. 2022
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
