Simulink - Switch - Example

The file is an example of simple design for simulation of Switch in MATLAB

You are now following this Submission

The file contains 5 components:
- Sine Wave
- Constant
- Switch
- Two (2) Scopes
It serves as an example on how to use a switch in MATLAB. There are three (3) inputs and one (1) output in the switch. When condition in input 2 is met, output is channeled to input 1 else it is channeled to input 3.

Cite As

Duc Chung Tran (2026). Simulink - Switch - Example (https://nl.mathworks.com/matlabcentral/fileexchange/45835-simulink-switch-example), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0