Subsystem alternates between ON and OFF and changes colors and labels accordingly.
The output is 0 and color is blue when OFF
The output is 1 and color is red when ON.
Code is contained in the OpenFcn callback and can be changed as needed.
Uses gcb instead of explicitly referring to block name, which makes reuse difficult.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.