Creating a block in Simulink
From OpenMBD
With all files in place, a new block can be created.
- Open the Simulink Library Browser
- Drag-and-drop a Level-2 MATLAB S-Function into the project
- Right-click the block
- Select Mask -> Create Mask...
- carefully copy the settings depicted in the following images:
- Click OK
- Right-click the block
- Select Block Parameters (M-S-Function)
- Fill in the parameters as follows:
- Close the dialog