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