tf = issortedrows(A)
tf = issortedrows(A, col)
tf = issortedrows(A, ..., direction)
| Parameter | Description |
|---|---|
| A | a matrix. |
| col | the columns used for the comparison. |
| direction | 'ascend' (default) or 'descend'. |
| Parameter | Description |
|---|---|
| tf | a logical: true when the rows of A are sorted. |
tf = issortedrows(A) returns true when the rows of A are sorted in ascending order.
Pass col and direction to match the sorting used by sortrows.
issortedrows([1 2; 3 4])
| Version | Description |
|---|---|
| 2.0.0 | initial version |