DSP Blockset | ![]() ![]() |
Library
Math Functions / Matrices and Linear Algebra / Matrix Operations
Description
The Matrix Multiply block multiplies n input matrices, A, B, C, ..., Un, in the forward direction, where n is specified by the Number of input ports parameter and Un is the input at the nth port.
All inputs must have sizes compatible for matrix multiplication; that is, size(A,2)
= size(B,1)
, size(B,2)
= size(C,1)
, and so on. Inputs can be real, complex, sample-based, or frame-based in any combination, but all inputs must have the same precision, single or double. A length-M 1-D vector input at any port is treated as an M-by-1 matrix.
The size of sample-based output Y
is [size(A,1) size(
Un,2)]
. That is, Y
is MA-by-NUn.
Algorithm
The Matrix Multiply block is optimized to use at most two temporary variables for storage of intermediate results.
Dialog Box
Supported Data Types
To learn how to convert to the above data types in MATLAB and Simulink, see Supported Data Types and How to Convert to Them.
See Also
Dot Product |
Simulink |
Matrix Product |
DSP Blockset |
Matrix Scaling |
DSP Blockset |
Product |
Simulink |
Also see Matrix Operations for a list of all the blocks in the Matrix Operations library.
![]() | Matrix 1-Norm | Matrix Product | ![]() |