Motorola DSP Developer's Kit | ![]() ![]() |
Sum the elements of a matrix along rows or columns.
MATLAB Syntax
Y=mot563_sum(X) Y=mot563_sum(X,DIM)
Description
For vectors, mot563_sum(X) is the sum of the elements of X. For matrices, mot563_sum(X) is a row vector with the sum over each column.
mot563_sum(X,DIM) sums along the dimension DIM.
Characteristics
X = [0 0.1 0.2 0.3 0.4 0.1]
mot563_sum(X,1) = [0.3 0.5 0.3] mot563_sum(X,2) = [ 0.3 0.8]
Argument
X
Vector (or matrix) with elements normalized in the range [-1,1] (for complex elements, both real and imaginary parts should comply with this limit).
See Also
mot563_diff
![]() | mot563_sqrt | mot563_xcorr | ![]() |