how can i change the value of a variable with a slider in matlab designer?
조회 수: 25 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Catalytic
2022년 9월 8일
편집: Catalytic
2022년 9월 8일
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
Steven Lord
2022년 9월 9일
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
참고 항목
카테고리
Help Center 및 File 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!