Robuta

https://au.mathworks.com/help/simulink/sfg/sssetcurrentoutputportdimensions.html ssSetCurrentOutputPortDimensions - Set the current size corresponding to dimension dIdx of the... SimStruct that represents an S-Function block. the currentsetsizecorrespondingdimension