Robuta

https://se.mathworks.com/help/simulink/sfg/sssetnuminputports.html ssSetNumInputPorts - Specify the number of input ports that a block has - MATLAB SimStruct that represents an S-Function block. the number