Array-Vector Divide
Divides the elements of an array by the elements of a vector along the specified dimension.
Description
Block Array-Vector Divide divides the values of the n-dimensional input array A by the values of the input vector V in the given dimension.
The length of the input V must be the same as the length of the given dimension A. The block Array-Vector Divide divides each element of A by the corresponding element of V.
Consider a three-dimensional input array A (i, j, k) of size M by N by P and an input vector V of size N by 1. If the Divide along dimension parameter is set to 2
, the output of the block is Y(i,j,k):
,
where:
.
.
.
The output of the block Array-Vector Divide has the same size as the input array A. This block supports valid and complex input data.
Ports
Input
A - input array
vector
| matrix
Input array; vector or matrix.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
V - input vector
vector
| matrix
Input vector.
Dependencies
This port appears only when you set the Vector (V) source parameters to Input port
.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
Parameters
Divide along dimension - dimension for division
1 (by default)
| positive number
Specifies the dimension by which to divide the elements of the input array A by the elements of the vector V.
Data types: Float64
Vector (V) source - source of the vector
Input port (by default)
| `Dialog parameter `
Set the source of vector V.
-
Input port
- the vector is taken from the input port. -
Dialog parameter
- the vector is taken from the dialogue parameter Vector (V) .
Vector (V) - vector
[0.5 0.25] (by default)
| vector
Sets the vector V.
Dependencies
This parameter is only used when Dialog parameter
is selected for the Vector (V) source parameters.
Data types: Float64