DSP Blockset | ![]() ![]() |
Multiply the elements of a matrix along rows or columns.
Library
Math Functions / Matrices and Linear Algebra / Matrix Operations
Description
The Matrix Product block multiplies the elements of an M-by-N input matrix u along either the rows or columns.
When the Multiply along parameter is set to Rows, the block multiplies across the elements of each row and outputs the resulting M-by-1 matrix. A length-N 1-D vector input is treated as a 1-by-N matrix.
When the Multiply along parameter is set to Columns, the block multiplies down the elements of each column and outputs the resulting 1-by-N matrix. A length-M 1-D vector input is treated as a M-by-1 matrix.
The output has the same frame status as the input.
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
Matrix Multiply |
DSP Blockset |
Matrix Square |
DSP Blockset |
Matrix Sum |
DSP Blockset |
prod |
MATLAB |
Also see Matrix Operations for a list of all the blocks in the Matrix Operations library.
![]() | Matrix Multiply | Matrix Scaling | ![]() |