| DSP Blockset | Search  Help Desk |
| Matrix Product | See Also |
Multiply the elements of a matrix along rows or columns.
Library
Matrix Functions, in Math FunctionsDescription
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 vector.
y = prod(u,2) % equivalent MATLAB codeWhen the Multiply along parameter is set to Columns, the block multiplies down the elements of each column and outputs the resulting 1-by-N vector.
y = prod(u) % equivalent MATLAB code
Dialog Box

See Also
Matrix Multiplicationprod (MATLAB)