isMonotonicDecreasing
Syntax
isMonotonicDecreasing(X)
Arguments
X is a scalar/vector.
Details
Check whether the elements in X are monotonically decreasing.
Examples
$ a = [10,8,6,4,2]
$ isMonotonicDecreasing(a);
true
$ a = [10,8,6,7,2]
$ isMonotonicDecreasing(a);
false
$ a = [10,8,6,6,4,2]
$ isMonotonicDecreasing(a);
true
$ a = [10,8,6,NULL,4,2]
$ isMonotonicDecreasing(a);
false
$ a = [10,8,6,4,2,NULL]
$ isMonotonicDecreasing(a);
true
Related functions: isMonotonicIncreasing, isMonotonic