Graphical switching between S-functions
Version 1.0.0.1 (3.01 KB) by
Stacey Gage
Use a single Simulink s-function block to access multiple s-functions.
Allow users to switch between multiple s-functions from popup menu. The s-functions used in this example block ship with Simulink.
For more details, edit block mask and examine the parameters tab. The callback section will show the command that makes it possible -- "set_param(gcb,'functionname',get_param(gcb,'sfun'))".
Cite As
Stacey Gage (2024). Graphical switching between S-functions (https://www.mathworks.com/matlabcentral/fileexchange/3385-graphical-switching-between-s-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R12
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Modeling in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.