issorted
issorted(A) returns true if the elements of the vector A are listed in ascending order and false otherwise.
Examples
>> A = 1:10 issorted(A)# 1
>> A = [1 10 2 5 3 7] issorted(A)# 0
>> A = 1:10 issorted(A)# 1
>> A = [1 10 2 5 3 7] issorted(A)# 0