Sorting cell array containing alphanumeric text

7 Ansichten (letzte 30 Tage)
Sam Smith
Sam Smith am 30 Nov. 2018
Kommentiert: Sam Smith am 30 Nov. 2018
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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by