User`s guide

Table Of Contents
ndims
11-146
11ndims
Purpose Provide the number of the dimensions of an LTI model or LTI array
Syntax n = ndims(sys)
Description n = ndims(sys) i s the number of dimensions of an LTI model or an array of
LTI models
sys. A single LTI model has two dimensions (one for outputs, a nd
one for inputs). An LTI array has 2+p dimensions, where 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))
Example sys = rss(3,1,1,3);
ndims(sys)
ans =
4
ndims
returns 4 for this 3-by-1 array of SISO models.
See Also size Returns a vector containing the lengths of the
dimensions of an LTI array or model
p 2