Matrix Concatenate
Combining input vectors for iterative processing.
|
|
|
Description
The Vector Concatenate block combines input signals into a single common signal that can be iteratively processed using a subsystem such as a for-each, while-iterator, or for-iterator.
Multiple Vector Concatenate blocks can be used to create the output signal in stages, but the result will be the same as using a single block.
The Edit inputs field specifies the input port numbers (Examples: 1
, 12
, 123
, 213
). They can be written in any order, however, concatenation will be in ascending order of port numbers.
Ports are specified by numbers; the port number must not be greater than the number of ports (i.e. you cannot write, for example, 124
).
If a block has a single input port, the output will be exactly equal to the input, even if Concatenate dimension is greater than the number of dimensions of the input.
Ports
Parameters
Number of inputs - number and names of input ports
12 (By default)
The number of input ports of the block is equal to the number of characters in this string. The characters become the names of these ports.
Mode - use in simulation
Vector (by default)
| Multidimensional array
.
Determines whether the block operates in vector or multidimensional array combining mode.
-
Vector
. Only signals with no more than two dimensions can be input: scalars, vectors and matrices N by 1 and 1 by N. Vector-string and vector-column cannot be combined.The number of dimensions at the output is equal to the largest number of dimensions at the input, except when the output is only scalars.
If the Mode parameter is set to
Vector
, the Concatenate dimension parameter is ignored. -
Multidimensional array
. In this mode, the Concatenate dimension field must be set.Important! All dimensions of inputs, except the one whose number is equal to Concatenate dimension, must be equal. If Concatenate dimension is not greater than the maximum number of input dimensions, then the number of output dimensions is equal to the largest number of input dimensions, except for the case when the output is only scalars.
If Concatenate dimension is greater than the maximum number of input dimensions, then the input dimensions are appended with units.
If the inputs have different numbers of dimensions, the missing dimensions are assumed to be 1.
Concatenate dimension - the dimension by which the input signals are combined
1 (By default)
| `positive integer'.
Output array dimension by which the input arrays will be concatenated.
The Concatenate dimension parameter must be a positive integer.
In Vector
mode, input signals cannot have more than two dimensions.
In Multidimensional array
mode, all dimensions of the inputs except the one whose number is equal to Concatenate dimension must be equal.