isMonotonicDecreasing
Syntax
isMonotonicDecreasing(X)
Arguments
X is a scalar/vector.
Details
Check whether the elements in X are monotonically decreasing.
Examples
$ a=[10,7,5,2,int()];
$ isMonotonicDecreasing(a);
true
$ a=[10.5,8.7,int(),5.3,1.0];
$ isMonotonicDecreasing(a);
false
$ a=[5,10,14,20,int()];
$ isMonotonicDecreasing(a);
false
Related functions: isMonotonicIncreasing, isMonotonic