Control Support for Variable-Size Arrays in a MATLAB Function Block
By default, support for variable-size arrays is enabled for a MATLAB Function block. To disable this support:
In the Modeling tab, in the Design Data section, click Property Inspector.
In the Property Inspector, in Properties > Advanced, clear the Support variable-size arrays check box.