MATLAB: How to use variant subsystems to model components with different numbers of inputs/outputs

simulink

I'm using R2013b or earlier. I want to use a Variant Subsystem to model child subsystems which have differing numbers of inputs and outputs. Can these systems be modeled using a Variant Subsystem?

Best Answer

Starting in R2014a, variant subsystems can have inports and outports that differ in number from the inports and outports in the parent Variant Subsystem. This is not supported in earlier releases. However, it's possible to model these systems by attaching some inputs and outputs to Terminator and Ground blocks.
To do this, create the child subsystems. Each should have N inputs and M outputs (some will be "dummy" inputs or outputs). Then, for each subsystem, connect the dummy inputs to Terminator blocks and dummy outputs to Ground blocks.