is_sorted
Determine if the vector is sorted. If the argument is that the matrix is determined,than the matrix rows or columns are sorted.
Arguments
- Input vector or matrix, double or complex values.
- String 'row' or 'col'.
- String 'a' or 'd', 'a' for ascending and 'd' for descending order
Output
Boolean
Examples