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?

2 次查看(过去 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 CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by