Robust Control Toolbox™ Previous page   Next Page 
stack
 Provide feedback about this page

Construct array by stacking uncertain matrices, models, or arrays

Syntax

Description

stack constructs an uncertain array by stacking uncertain matrices, models, or arrays along array dimensions of an uncertain array.

umatout = stack(arraydim,umat1,umat2,...) produces an array of uncertain matrices, umatout, by stacking (concatenating) the umat matrices (or umat arrays) umat1, umat2,... along the array dimension arraydim. All models must have the same number of columns and rows. The column/row dimensions are not counted in the array dimensions.

umatout = stack(arraydim,usys1,usys2,...) produces an array of uncertain models, ufrd or uss, or usysout, by stacking (concatenating) the ufrd or uss matrices (or ufrd or uss arrays) usys1, usys2,... along the array dimension arraydim. All models must have the same number of columns and rows (the same input/output dimensions). Note that the input/output dimensions are not considered for arrays.

Examples

Consider usys1 and usys2, two single-input/single-output uss models:

You can stack along the first dimension to produce a 2-by-1 uss array.

You can stack along the second dimension to produce a 1-by-2 uss array.

You can stack along the third dimension to produce a 1-by-1-by-2 uss array.

See Also
append      Groups models by appending their inputs and outputs

blkdiag     Groups models by appending their inputs and outputs

horzcat     Performs horizontal concatenation

vertcat     Performs vertical concatenation


 Provide feedback about this page 

Previous page stabproj frd/svd Next page

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