Specifications

Table Of Contents
stack
16-214
16stack
Purpose 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 LTImodelssys
by stacking (concatenating) the LTI models (or LTI arrays) sys1,sys2,...
alongthearraydimensionarraydim. 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” on page 4-7, and “Building LTI Arrays Using the stack Function” on
page 4-15 for more information.
Example If sys1 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.