stack
Build model array by stacking models or model arrays along array dimensions
语法
sys = stack(arraydim,sys1,sys2,...)
说明
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 (Control System Toolbox).
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.
示例
版本历史记录
在 R2012a 中推出