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
Ais a vector, thensort(A)sorts the vector elements.If
Ais a matrix, thensort(A)treats the columns ofAas vectors and sorts each column.If
Ais 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