<< cpsd FOSSEE Signal Processing Toolbox cummin >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > cummax

cummax

Cumulative maximum

Calling Sequence

M = cummax(A)
returns the cumulative maximum of the arguments of A. The dimension
of M is same as the dimension of A. If A is a 2D matrix, the operation
is performed along the columns. For a hypermatrix, the operation is
performed along the first non-zero dimension
M = cummax(A,dim)
The operation is performed along the dimension specified by dim
M = cummax(_,direction)
direction specifies as the direction of operation

Parameters

Examples

1) Cumulative maximum values in a vector
v = [8 9 1 10 6 1 3 6 10 10]
M = cummax(v)

Expected output: [8 8 1 1 1 1 1 1 1 1]

Authors

See also


Report an issue
<< cpsd FOSSEE Signal Processing Toolbox cummin >>