summaryrefslogtreecommitdiff
path: root/macros/cummax.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/cummax.sci')
-rw-r--r--macros/cummax.sci10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/cummax.sci b/macros/cummax.sci
index 672dc5c..e9a68e5 100644
--- a/macros/cummax.sci
+++ b/macros/cummax.sci
@@ -13,10 +13,10 @@ function M = cummax(varargin)
// direction specifies as the direction of operation
//
// Parameters
- // A - real|complex numbers - vector|matrix
- // Input Array
- // For complex elements, cummax compares the magnitude of elements. If
- // the magnitude are same, phase angles are compared.
+// A - real|complex numbers - vector|matrix
+// Input Array
+// For complex elements, cummax compares the magnitude of elements. If
+// the magnitude are same, phase angles are compared.
// dim - positive integer - scalar
// Dimension to operate along
// If no dimension is specified, then the default value is the first
@@ -31,7 +31,7 @@ function M = cummax(varargin)
// 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]
+ // Expected output: [8 9 9 10 10 10 10 10 10 10]
//
// Authors
// Ayush Baid