Set the width of an output port that outputs 1-D (vector) signals
void mdlSetOutputPortWidth(SimStruct *S, int_T port,
SimStruct representing an S-Function block.
Index of a port.
Width of signal.
This method is called with the candidate width for a dynamically sized port. If the
proposed width is acceptable, the method should go ahead and set the actual port width,
. If the
size is unacceptable, an error should be generated via
. Note that any other dynamically sized input or
output ports whose widths are implicitly defined by virtue of knowing the width of the given
port can also have their widths set via calls to
This method is only valid for simulation, and must be enclosed in a
Introduced before R2006a