R = cummax(A)
R = cummax(A, d)
| Parameter | Description |
|---|---|
| A | input array. |
| d | dimension to operate along: positive integer scalar. |
| Parameter | Description |
|---|---|
| R | Cumulative maximum of array elements. |
cummax returns cumulative maximum values along the selected dimension.
A = [3 1 4 2];
R = cummax(A)
| Version | Description |
|---|---|
| 2.0.0 | initial version |