Set the dimensions of the signals accepted by an output port
SetOutputPortDimensions(s, port, dimsInfo)
Simulink.MSFcnRunTimeBlockclass representing the Level-2 MATLAB S-Function block.
Integer value specifying the index of the port to be set.
Array that specifies the signal dimensions supported by the port, e.g.,  for a 5-element vector signal or [3 3] for a 3-by-3 matrix signal.
The Simulink® engine calls this method with candidate dimensions
A Level-2 MATLAB S-function sets the output port dimensions using the line
s.OutputPort(port).Dimensions = dimsInfo;
This method can set the dimensions of any other input or output
port whose dimensions derive from the dimensions of
By default, the engine calls this method only if it can fully
determine the dimensionality of
port from the port
to which it is connected.
The engine calls this method until all output ports with inherited dimensions have their dimensions specified.
an example of how to use this function.