MOTDSP566 Blockset |
|
Search Help Desk |
MOTDSP566 Matrix Mean | Contents See Also |
Purpose
Mean the elements of a matrix along rows or columns.
Library
Motdsp566lib
Description
The MOTDSP566 Matrix Mean block sums the elements of an M-by-N input matrix u along either the rows or columns.
When the Mean along parameter is set to Rows, the block sums across the elements of each row and outputs the resulting M-by-1 vector.
y = mot566_mean(u,2) % equivalent MATLAB code
When the Mean along parameter is set to Columns, the block sums down the elements of each column and outputs the resulting 1-by-N vector.
y = mot_dsp566_mean(u) % equivalent MATLAB code
Dialog Box
MOTDSP566 Matrix Sum | Sum of elements |