row_sorted

Determine if the row vector is sorted. If the argument is that the matrix is determined,than the matrix rows 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

row_sorted