Simulink - Switch - Example

The file is an example of simple design for simulation of Switch in MATLAB
514 Downloads
Updated 11 Mar 2014

View License

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 (2025). Simulink - Switch - Example (https://se.mathworks.com/matlabcentral/fileexchange/45835-simulink-switch-example), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Performance and Memory in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0