By default, support for variable-size arrays is enabled for a MATLAB Function block. To disable this support:
In the MATLAB Function Block Editor, select Edit Data.
Clear the Support variable-size arrays check box.