From 1251f70aa3442736ce6fd9c4fb7fbce412af5a52 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 25 Jul 2018 17:11:09 +0530 Subject: code changes by Kartik Hegde during FOSSEE Fellowship 2018 --- help/en_US/cummax.xml | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'help/en_US/cummax.xml') diff --git a/help/en_US/cummax.xml b/help/en_US/cummax.xml index 76c863a..e385ac0 100644 --- a/help/en_US/cummax.xml +++ b/help/en_US/cummax.xml @@ -25,32 +25,42 @@ 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 + + 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 @@ -62,9 +72,5 @@ Expected output: [8 8 1 1 1 1 1 1 1 1] - - See also - - - + -- cgit