Skip to content

make_Vector2Bus.m

Basic Information

  SYNTAX:  make_Vector2Bus(block_name,output_signals)

  PURPOSE:  Create a Vector2Bus block in the currently selected block of your simulink model.

  INPUT:
       block_name = what to call the block (string)
    output_signals = structure with field names defining the separate output bus fields

  OUTPUT:
    creates a Simulink block in the currently active subsystem window

  RESTRICTIONS:  Currently allows sub-buses only 1 level down from top.  All leaf nodes must
    be column vectors.