Setting Live editor Slider Control minimum and maximum

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

I am encountering this same issue. Did you manage to find a way to do this?
Thanks in advance!
TJ
TJ 2020년 10월 15일
Sorry to be unhelpful, but I'm afraid I gave up on using Live Editor for the purpose I was planning.
I am surprised that this is not yet possible.
It is possible in Live Editor for web.

댓글을 달려면 로그인하십시오.

 채택된 답변

Ananya Tewari
Ananya Tewari 2021년 10월 20일

0 개 추천

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.
Refer to this document for more information on linking variables to controls. Here is the link to Release Notes.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

TJ
2019년 10월 18일

댓글:

TJ
2021년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by