stack

Build LTI array by stacking LTI models or LTI arrays along array dimensions

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), but the number of states can vary. The I/O dimensions are not counted in the array dimensions. See Dimensions, Size, and Shape of an LTI Array and Building LTI Arrays Using the stack Function for more information.

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.

Example

If sys1 and sys2 are two LTI models:

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS