MATLAB: Turn a checkbox green

guide; checkbox; color; background color; gui;MATLAB

I have a uitable in a GUI I made in Matlab guide.
I want a checkbox to turn green when its 'checked', and turn back red if its unchecked.
I cannot find a child property for this simple sounding task.

Best Answer

Using the Matlab properties of your checkbox, you can only change the color of the font ( ForegroundColor ) and it's highlighted color ( BackgroundColor ) for your checkbox. You cannot change the appearance of the box itself.
If you're wanting to accomplish an appearance change other than the two available modifications using the BackgroundColor and ForegroundColor properties, you'll have to modify Matlab's underlying Look-and-Feel. This will require quite a bit more work, but if you're interested, the below article may be of help:
Related Question