Setting Live editor Slider Control minimum and maximum

11 Ansichten (letzte 30 Tage)
TJ
TJ am 18 Okt. 2019
Kommentiert: TJ am 20 Okt. 2021
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 Kommentare
goc3
goc3 am 20 Jan. 2021
I am surprised that this is not yet possible.
Paúl Aguilar
Paúl Aguilar am 21 Mai 2021
It is possible in Live Editor for web.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Ananya Tewari
Ananya Tewari am 20 Okt. 2021
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.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by