ndims
Query number of dimensions of dynamic system model or model array
语法
n = ndims(sys)
说明
n = ndims(sys)
is the number of dimensions of a dynamic system model or a model array sys
. A single model has two dimensions (one for outputs, and one for inputs). A model array has 2 + p dimensions, where p ≥ 2 is the number of array dimensions. For example, a 2-by-3-by-4 array of models has 2 + 3 = 5 dimensions.
ndims(sys) = length(size(sys))
示例
版本历史记录
在 R2012a 中推出