cummax
Cumulative maximum
Calling Sequence
M = cummax(A)
M = cummax(A,dim)
M = cummax(_,direction)
Parameters
A:
positive integer valueFor complex elements, cummax compares the magnitude of elements. If the magnitude are same, phase angles are compared.
dim:
Dimension to operate alongIf no dimension is specified, then the default value is the first array dimension whose value is greater than 1
direction:
Direction of cumulationIf the direction is forward, cummax works from 1 to end of the active dimension. Otherwise, it works in the opposite sense
Description
The function returns the cumulative maximum elements of the input vector/array.
Examples
Authors
Ayush Baid