Engee documentation

Width

The number of input signal elements.

blockType: Width

Path in the library:

/Basic/Signal Attributes/Width

Description

The Width block outputs the number of elements of the input signal, which can be a scalar, vector, matrix, or multidimensional array.

For example, if the input signal is a matrix [1 2; 3 4], the output will be the number of elements of this matrix - 4.

You can use the bus array as input to the block Width.

Ports

Input

# IN_1 — input signal
scalar | vector | matrix | multidimensional array

Details

An input signal specified as a scalar, vector, matrix or multidimensional array.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Complex numbers support

Yes

Output

# OUT_1 — output signal
scalar

Details

The output signal represents the number of elements in the input signal as a scalar.

Data types

Float64.

Complex numbers support

Yes

Additional options

C code generation: Yes