
Dimensions, Size, and Shape of an LTI Array
4-9
Five related quantities are pertinent to understanding the array dimensions:
• N, the number of models in the LTI array
• K, the number of array dimensions
• , the list o f lengths of the array dimensions
- is the number of models along the dimension.
• , the configuration of the models in the array
- The configuration determines the shape of the arra y.
- The product of these integers is N.
In the example model
m2d,:
• The length of the output dimension, t he first I/O dimension, is 2, since there
are two output channels in each model.
• Thelengthof theinput dimension,thesecondI/O dimension,is 1,since there
is only one input channel in each model.
• N, the number of models in the LTI array, is 6.
• K, the number of array dimensions, is 2.
• The array dimension lengths are [2 3].
• The array configuration is 2-by-3.
size and ndims
You can access th e dimensions and shape of an LTI array using:
• size to determine the lengths of each of the dimensions associated with an
LTI array
•
ndims to d et ermine the to tal number of dimensions in an LTI array
When applied to an LTI array,
size returns
[Ny Nu S1 S2 ... Sk]
where
•
Ny is the number of outputs common to all models in the LTI array.
•
Nu is the number of inputs common to all models in the LTI array.
•
S1 S2 ... Sk are the lengths of the array dimensions of a k-dimensional
array of models.
Si is the number of models along the ith array dimension.
S
S
…S
1
––
2
…
K
––––
1
2
×…
K
××
Kommentare zu diesen Handbüchern