Control Support for Variable-Size Arrays in aMATLAB FunctionBlock
By default, support for variable-size arrays is enabled for aMATLAB Functionblock. To disable this support:
In theModelingtab, in theDesign Data节中,clickProperty Inspector.
In the Property Inspector, inProperties>Advanced, clear theSupport variable-size arrayscheck box.