ASORT sorts an array or cell array of alphanumeric strings numerically rather than in ascii dictionary order
strings are divided into three different categories, which are returned in separate cells
- numerically sorted strings that contain only one readable number
- ascii dictionary order sorted strings that contain more than one readable or invalid numbers
- ascii dictionary order sorted strings that contain no numbers
> help asort
for explanations and options
this sorter can be used, for instance, to sort files with numerical extensions, eg,
look at the accompanying published m-file for a few examples
us (2020). asort: a pedestrian alphanumeric string sorter (https://www.mathworks.com/matlabcentral/fileexchange/7212-asort-a-pedestrian-alphanumeric-string-sorter), MATLAB Central File Exchange. Retrieved .
Works well. Thank you.
due to a severe misunderstanding, a premature version was posted! i sincerely apologize. the ver tag must be 21-Mar-2005 17:33:11
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!