I want to call slidervaluechanging for 3 different sliders in order to change the panel color background. Is there a simple way to do this?

3 ビュー (過去 30 日間)
I am only getting one value for changingValue. if there is something simple that I am missing can you let me know. i've seen that I could probably do this by making a function for each but that is out of the scope of my current understanding. I'm just doing this for fun if its much more complicated simply let me know, you dont need to put a lot of work into showing what I can do as I probably wouldn't rlly understand what iI am doing. Thank you for your help.

採用された回答

Rik
Rik 2023 年 4 月 15 日
You need to specify the index somewhere (use a different one for each slider). Then you can retrieve the current color, change only one color channel, and write back the new color.
You should look for things like a userdata property (which might not be available in AppDesigner), or adjust the callback.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by