DSP Blockset
  Go to block:
    Search    Help Desk 
Matrix Sum    See Also

Sum the elements of a matrix along rows or columns.

Library

Matrix Functions, in Math Functions

Description

The Matrix Sum block sums the elements of an M-by-N input matrix u along either the rows or columns.

When the Sum along parameter is set to Rows, the block sums across the elements of each row and outputs the resulting M-by-1 vector.

This is equivalent to

When the Sum along parameter is set to Columns, the block sums down the elements of each column and outputs the resulting 1-by-N vector.

This is equivalent to

Dialog Box

Sum along
The dimension of the matrix to sum along, row or column.
Number of columns in input
The number of columns in the input matrix.

See Also

Matrix Product
Matrix Multiplication
sum (MATLAB)


[ Previous | Help Desk | Next ]