isMonotonicIncreasing

Syntax

isMonotonicIncreasing(X)

Arguments

X is a scalar/vector.

Details

Check whether the elements in X are monotonically increasing.

Examples

$ a=[int(),2,5,7,10]
$ isMonotonicIncreasing(a);
true

$ a=[2.1,double(),3.5,4.7,8.2,10.5]
$ isMonotonicIncreasing(a);
false

$ a=[5,10,14,20,int()]
$ isMonotonicIncreasing(a);
false

Related functions: isMonotonicDecreasing, isMonotonic