Setting Live editor Slider Control minimum and maximum

10 ビュー (過去 30 日間)
TJ
TJ 2019 年 10 月 18 日
コメント済み: TJ 2021 年 10 月 20 日
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 件のコメント
goc3
goc3 2021 年 1 月 20 日
I am surprised that this is not yet possible.
Paúl Aguilar
Paúl Aguilar 2021 年 5 月 21 日
It is possible in Live Editor for web.

サインインしてコメントする。

採用された回答

Ananya Tewari
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.
Refer to this document for more information on linking variables to controls. Here is the link to Release Notes.
  1 件のコメント
TJ
TJ 2021 年 10 月 20 日
Thanks I saw this in the release notes.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by