Sorting a Cell Array
This function sorts a cell array, even if it contains character strings and numeric values (i.e. mixed). The only restriction is that it assumes that each column contains either numeric values or character strings, not both. It sorts the rows in ascending order. Note that it allows more than one column to be sorted according to the priority input by the user.
Cite As
Jeff Jackson (2024). Sorting a Cell Array (https://www.mathworks.com/matlabcentral/fileexchange/13770-sorting-a-cell-array), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | The update for the MODE functionality does not work correctly as Mathworks sort.m function does not allow cell arrays to be sorted when using the DIM argument. |