Sorting cell array containing alphanumeric text

7 views (last 30 days)
I have a cell array, a column of which consists of alphanumeric text such as
3. Item 3
2. Item 4
5. Item 5
I want to sort the cell array so that that column is in ascending order according to the number: 1. Item 2; 2. Item 2; etc, and have the other columns sorted along with this.

Accepted Answer

madhan ravi
madhan ravi on 30 Nov 2018
sort(a) where a is your cell array

More Answers (0)

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!