| Control System Toolbox Function Reference | ![]() |
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 models sys 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" 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. | ssdata | step | ![]() |