User`s guide
Matrix Multiply
5-282
5Matrix Multiply
Purpose Multiply input matrices.
Library Math Functions / Matrices and Linear Algebra / Matrix Operations
Description The Matrix Multiply block multiplies n input matrices, A, B, C, ..., U
n
, in the
forward direction, where n is specified by the
Number of input ports
parameter and U
n
is the input at the nth port.
Y = ((((A*B)*C)*D) ... Un) % Equivalent MATLAB code
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
M
A
-by-N
Un
.
Algorithm The Matrix Multiply block is optimized to use at most two temporary variables
for storage of intermediate results.
Dialog Box
Number of input ports
The number of inputs to the block.
Supported
Data Types
Single-precision floating point
Double-precision floating point