stack
Build model array by stacking models or model arrays along array dimensions
Syntax
sys = stack(arraydim,sys1,sys2,...)
Description
sys = stack(arraydim,sys1,sys2,...) produces
an array of dynamic system models sys by stacking
(concatenating) the models (or arrays) sys1,sys2,... along
the array dimension arraydim. All models must have
the same number of inputs and outputs (the same I/O dimensions), but
the number of states can vary. The I/O dimensions are not counted
in the array dimensions. For more information about model arrays and
array dimensions, see Model Arrays.
For arrays of state-space models with variable order, you cannot
use the dot operator (e.g., sys.A) to access arrays.
Use the syntax
[A,B,C,D] = ssdata(sys,'cell')
to extract the state-space matrices of each model as separate
cells in the cell arrays A, B, C,
and D.
Examples
Version History
Introduced before R2006a