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. For more information, see Simulink.Bus.

  • MATLAB Function blocks support nonvirtual buses only (see Working with Virtual and Nonvirtual Buses).

Was this topic helpful?