You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Glenn Gomes (2026). Simulink ON/OFF switch (https://www.mathworks.com/matlabcentral/fileexchange/39348-simulink-on-off-switch), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (9.09 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
