Limitations of Structures and Buses in MATLAB Function Blocks
Structures in MATLAB Function blocks support a subset of the operations available for MATLAB® structures (see Structures).
You cannot use structures that contain cell arrays or classes for Simulink® signals, parameters, or data store memory.
You cannot use variable-size data with arrays of buses (see Group Nonvirtual Buses in Arrays of Buses).