csum 217
csum
Syntax
[outpdm] = csum(inpdm, {channels})
Parameter List
Inputs: inpdm real or complex valued pdm or constant matrix
Keywords: channels Sum over channels. outpdm has the same dimensions as
inpdm.
Outputs: outpdm output pdm
Description
Perform a cumulative sum over the rows of a matrix or a pdm. If channels is specified
then the sum is performed over the domain of the pdm.
Examples
A = [ones(6,1),random(6,1)]?
A (a rectangular matrix) =
1 0.608453
1 0.854421
1 0.0642647
1 0.827908
1 0.926234
1 0.566721
csum(A)