| Control System Toolbox | Search  Help Desk |
| stack | Examples |
Build an LTI array by stacking LTI models or LTI arrays along array dimensions of an LTI array
Syntax
sys = stack(arraydim,sys1,sys2,...)
Description
sys = stack(arraydim,sys1,sys2,...) produces an array of LTI modelssys by stacking (concatenating) the LTI models (or LTI arrays) sys1,sys2,... along the array dimension arraydim. All models must have the same number of inputs and outputs (the same I/O dimensions). The I/O dimensions are not counted in the array dimensions. See "Dimensions, Size, and Shape of an LTI Array" in the manual, and "Building LTI Arrays Using the stack Function" in the manual for more information.
Example
Ifsys1 and sys2 are two LTI models with the same I/O dimensions:
stack(1,sys1,sys2) produces a 2-by-1 LTI array.
stack(2,sys1,sys2) produces a 1-by-2 LTI array.
stack(3,sys1,sys2) produces a 1-by-1-by-2 LTI array.