Add Stateflow® charts with polymorphic logic to a Simulink® model.
Polymorphic logic is logic that can process data with different properties, such as type, size, and complexity.
Configure the charts to inherit the properties you want to specialize.
For a list, see Customize Properties of Library Blocks.
Optionally, customize your charts using masking.
Simulate and debug your charts.
In Simulink, create a library model by selecting File > New > Library.
Copy or drag the charts into a library model.
For an example using MATLAB Function blocks, see Create Custom Block Libraries (Simulink).