Follow these rules when defining structures in MATLAB Function blocks:
For each structure input or output in a MATLAB
Function block, you must define a Simulink.Bus
object
in the base workspace to specify its type.
MATLAB Function blocks support nonvirtual buses only.