Rules for Defining Structures in MATLAB Function Blocks
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 bus outputs but do not support virtual bus outputs.