When the block structure becomes complicated, you can combine those structures into one block so that the contents are not visible from the outside.
This is called superblocking (called subsysteming in Matlab). By superblocking each function, the role of each function becomes clear and the readability of the model improves.
■Example of superblocking
The following model is used as an example.
Drag the mouse to select the range you want to subsystem.
Next, right-click with the block selected and click "Select to Superblock".
Then the blocks will be superblocked like this. However, the wiring will be messed up, so you need to align them properly. The following has been fixed.
Click on the superblock to see the internal structure.
■How to deal with errors where input/output ports are not displayed
This is probably a bug, but if you create a superblock using the above method, you may not be able to connect lines from the outside even if you add input/output ports.
In that case, it's a bit of a hassle, but you need to bring the following superblock from the palette browser and place blocks inside it.