Simulink ON/OFF switch

版本 1.2.0.0 (9.1 KB) 作者: Glenn Gomes
Simulink ON/OFF switch. Used to toggle between ON and OFF states.
1.1K 次下载
更新时间 2012/12/7

查看许可证

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.

引用格式

Glenn Gomes (2025). Simulink ON/OFF switch (https://ww2.mathworks.cn/matlabcentral/fileexchange/39348-simulink-on-off-switch), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Uses gcb instead of explicitly referring to block name, which makes reuse difficult.

1.0.0.0