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 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Rik
Rik il 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.

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by