Author Blocks Using MATLAB S-Functions - MATLAB & Simulink (original) (raw)
Main Content
Create blocks whose properties and behaviors are defined by MATLABĀ® S-functions
Use the Level-2 MATLAB S-function API to create new blocks that extend the modeling functionality of SimulinkĀ® and have many of the features and capabilities of Simulink built-in blocks, including:
- Multiple input and output ports
- 1-D, 2-D, and n-D input and output signals
- All data types supported by Simulink
- Real or complex signals
- Frame-based signals
- Multiple sample rates
- User-defined data and work vectors
- Tunable and run-time parameters
Categories
- MATLAB S-Function Basics
Principles of S-function implementation - Create MATLAB S-Functions
Create custom blocks with Level-2 MATLAB S-functions - Configure Block Features for MATLAB S-Functions
Implement sample times, input and output functions in S-functions