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 Properties You Can Specialize Across Instances of Library Blocks.
Optionally, customize your charts using masking.
For more information, see Masks on Blocks in User Libraries in the Simulink documentation.
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 in the Simulink documentation.