Engee documentation

Array-Vector Subtract

Subtracts vector elements from array elements by the specified dimension.

blockType: ArrayVectorSubtract

Path in the library:

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

Description

Block Array-Vector Subtract subtracts the values in the input vector from the values -dimensional input array in a given dimension.

Input length must be the same as the length of the specified dimension . Block Array-Vector Subtract subtracts each element from the corresponding element .

Consider a three-dimensional input array size on on and the input vector size to 1'. If the Subtract along dimension parameter is set to `2, the block output :

Where:

Block output Array-Vector Subtract has the same size as the input array . This block supports valid and complex input data.

Ports

Input

A — input array
vector | matrix

Input array; vector or matrix.

Data types: Float64

V — input vector
vector | matrix

The input vector.

Dependencies

This port is used only when you set the Vector (V) source parameter to Input port.

Data types: Float64

Output

Port_1 — output array
vector | matrix

Block output; vector or matrix.

Data types: Float64

Parameters

Subtract along dimension — dimension for subtracting
1 (by default) | positive number

Sets the dimension along which to subtract the elements of the vector from the elements of the input array .

Data types: Float64

Vector (V) source — the source of the vector
Input port (by default) | Dialog parameter

Specify the vector source .

  • 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

Sets the vector V.

Dependencies

This parameter is used only when the Dialog parameter value of the Vector (V) source parameter is selected.

Data types: Float64