FUNCTION REFERENCE
issorted
True if the data are in ascending order.
True if the data are in ascending order.
Syntax
tf = issorted(A)Syntax
tf = issorted(A, 'rows')A may be a numeric, logical or char vector, or a cell array of character
vectors. NaN sorts after every number. With 'rows' the rows of a matrix are
compared as in sortrows.
Example
issorted([1 2 2 3]) % trueDifferences from MATLAB: complex input is not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.