Engee documentation

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:

/Signal Operations/Math Functions/Matrices and Linear Algebra/Matrix Operations/Array-Vector Add

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

Input

A — input array
vector | matrix

Input array; vector or matrix.

Data types: Float64

V — input vector
vector | matrix

The input vector.

Dependencies

Used if the Vector (V) source parameter is set to `Input port'.

Data types: Float64

Output

Port_1 — output array
vector | matrix

Block output; vector or matrix.

Data types: Float64

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