Width
The number of input signal elements.
blockType: Width
Path in the library:
|
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 |
|
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 |
|
Complex numbers support |
Yes |