Setting Live editor Slider Control minimum and maximum
조회 수: 11 (최근 30일)
이전 댓글 표시
I am attempting to use the slider control in a live script, however I need the minimum and maximum values to be set by properties of workspace variables.
for example, I wish the maximum slider value to be the size of the 1st dimension of a matrix (8 bit Image)
For a slider in app designer i would use the following command to set minimum=1 and maximum=2
app.Slider.Limits=[1 2]
Is there a way to do the same in live editor?
댓글 수: 4
채택된 답변
Ananya Tewari
2021년 10월 20일
Hello,
The functionality to create dynamic controls in live scripts by linking variables to slider values was introduced in MATLAB R2021a release. You can try updating to this release or alternatively use MATLAB online to have the functionality.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!