sysgroup [control]
— Function File: sys = sysgroup (asys, bsys)

Combines two systems into a single system.

Inputs

asys
bsys
System data structures.

Output

sys
sys = block diag(asys,bsys)
          __________________
          |    ________    |
          u1 ----->|--> | asys |--->|----> y1
          |    --------    |
          |    ________    |
          u2 ----->|--> | bsys |--->|----> y2
          |    --------    |
          ------------------
          Ksys

The function also rearranges the internal state-space realization of sys so that the continuous states come first and the discrete states come last. If there are duplicate names, the second name has a unique suffix appended on to the end of the name.