Array-Vector Add
Adds the elements of the vector to the elements of the array according to the specified dimension.
blockType: ArrayVectorAdd
Path in the library:
|
Description
Block Array-Vector Add adds the values of the input vector to values -dimensional input array in a given dimension.
Input length must be the same as the length of the specified dimension . Block Array-Vector Add adds each element to the corresponding element .
Consider a three-dimensional input array size on on and the input vector size to 1'. If the Add along dimension parameter is set to `2
, then the block output :
Where:
Block output Array-Vector Add has the same size as the input array . This block supports valid and complex input values.
Ports
Parameters
Add along dimension — dimension for summing
1 (by default)
| positive number
Specifies the dimension by which the input array A will be summed with the elements of the vector V.
Data types: Float64
Vector (V) source — the source of the vector
Input port (by default)
| Dialog parameter
Specify the source of the vector V.
-
Input port
— the vector is taken from the input port. -
`Dialog parameter' — the vector is taken from the dialog parameter Vector (V).
Vector (V) — vector
[0.5 0.25] (by default)
| vector
Set the vector, V.
Dependencies
This parameter is used only when you select the Dialog parameter
value for the Vector (V) source parameter.
Data types: Float64