col_sorted

Determin if the column vector is sorted. If the argument is that the matrix is determined,than the matrix columns are sorted.

Arguments

  1. Input vector or matrix, double or complex values.
  2. String 'a' or 'd', 'a' for ascending and 'd' for descending order

Output

Boolean

Examples

col_sorted