| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Signal Processing Blockset |
| Contents | Index |
| Learn more about Signal Processing Blockset |
Math Functions / Matrices and Linear Algebra / Matrix Operations
dspmtrx3
The Array-Vector Divide block divides the values in the specified dimension of the N-dimensional input array A by the values in the input vector V.
The length of the input V must be the same as the length of the specified dimension of A. The Array-Vector Divide block divides each element of V by the corresponding element along that dimension of A.
Consider a 3-dimensional M-by-N-by-P input array A(i,j,k) and a P-by-1 input vector V. When the Divide along dimension parameter is set to 2, the output of the block Y(i,j,k) is
![]()
where

The output of the Array-Vector Divide block is the same size as the input array, A. When both inputs are sample based, the output is sample based; otherwise, the output is frame based. This block accepts real and complex floating-point and fixed-point input arrays, and real floating-point and fixed-point input vectors.
The following diagram shows the data types used within the Array-Vector Divide block for fixed-point signals.

When you specify the vector V on the Main pane of the block mask, you must specify the data type and scaling properties of its elements in the Vector (V) parameter on the Data type attributes tab. When the vector comes in through the block port, its elements inherit their data type and scaling from the driving block.
You can set the vector and output data types in the block dialog as discussed below.
The Main pane of the Array-Vector Divide block dialog appears as follows.

Specify the dimension along which to divide the input array A by the elements of vector V.
Specify the source of the vector, V. The vector can come from the Input port or from a Dialog parameter.
Specify the vector, V. This parameter is visible only when you select Dialog parameter for the Vector (V) source parameter.
The Data type attributes pane of the Array-Vector Divide block dialog appears as follows.

Note Floating-point inheritance takes precedence over the data type settings defined on this pane. When inputs are floating point, the block ignores these settings, and all internal data types are floating point. |
Select the rounding mode for fixed-point operations.
Select the overflow mode for fixed-point operations.
Use this parameter to specify the word and fraction lengths for the elements of the vector, V. You can set this parameter to:
A rule that inherits a data type, for example, Inherit: Same word length as input
An expression that evaluates to a valid data type, for example, fixdt(1,16,0)
Click the Show data type assistant button
to display the Data
Type Assistant, which helps you set the Accumulator
data type parameter.
See Using the Data Type Assistant for more information.
Note The Vector (V) parameter on the Data type attributes pane is only visible when you select Dialog parameter for the Vector (V) source parameter on the Main pane of the block mask. When the vector comes in through the block's input port, the data type and scaling of its elements are inherited from the driving block. |
Specify the output data type. See Fixed-Point Data Types for illustrations depicting the use of the output data type in this block. You can set it to:
A rule that inherits a data type, for example, Inherit: Same as first input
An expression that evaluates to a valid data type, for example, fixdt(1,16,0)
Click the Show data type assistant button
to display the Data
Type Assistant, which helps you set the Output
data type parameter.
See Specifying Block Output Data Types for more information.
Specify the minimum value that the block should output. The default value, [], is equivalent to -Inf. Simulink software uses this value to perform:
Simulation range checking (see Checking Signal Ranges)
Automatic scaling of fixed-point data types
Specify the maximum value that the block should output. The default value, [], is equivalent to Inf. Simulink software uses this value to perform:
Simulation range checking (see Checking Signal Ranges)
Automatic scaling of fixed-point data types
Select this parameter to prevent any fixed-point scaling you specify in this block mask from being overridden by the autoscaling tool in the Fixed-Point Tool.
| Port | Supported Data Types |
|---|---|
A |
|
V |
|
Output |
|
| Array-Vector Add | Signal Processing Blockset |
| Array-Vector Multiply | Signal Processing Blockset |
| Array-Vector Subtract | Signal Processing Blockset |
![]() | Array-Vector Add | Array-Vector Multiply | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |