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 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Rik
on 15 Apr 2023
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.
More Answers (0)
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!