sort
Sort elements of real-valued fi
object in ascending or descending
order
Description
sorts the
elements of the real-valued B
= sort(A
)fi
object A
in ascending order.
If
A
is a vector, thensort(A)
sorts the vector elements.If
A
is a matrix, thensort(A)
treats the columns ofA
as vectors and sorts each column.If
A
is a multidimensional array, thensort(A)
operates along the first array dimension whose size does not equal1
, treating the elements as vectors.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2008b