ss2sf - Subsystem-to-S Function
Version 1.1.0.1 (1.33 KB) by
Cole Stephens
Convert a subsystem to an s-function via the MATLAB command line.
Typically, you have to right-click on a subsystem, choose Real Time Workshop -> Generate S-Function in order to replace a standard Simulink subsystem with an S-function.
With ss2sf, you can provide a cell array of subsystem paths and the function will replace the specified subsystems with their s-function equivalents.
Cite As
Cole Stephens (2025). ss2sf - Subsystem-to-S Function (https://www.mathworks.com/matlabcentral/fileexchange/5846-ss2sf-subsystem-to-s-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Simulink Coder 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.