cummax
Cumulative maximum of array elements.
📝Syntax
R = cummax(A)
R = cummax(A, d)
📥Input Arguments
Parameter Description
A input array.
d dimension to operate along: positive integer scalar.
📤Output Arguments
Parameter Description
R Cumulative maximum of array elements.
📄Description

cummax returns cumulative maximum values along the selected dimension.

💡Examples
A = [3 1 4 2];
R = cummax(A)
🔗See Also
maxcummin
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub