Robuta

https://it.mathworks.com/help/simulink/sfg/ssgetcurrentinputportwidth.html ssGetCurrentInputPortWidth - Get the total width (total number of elements) of the signal at input... SimStruct that represents an S-Function block. get thetotalwidth