Sort characters w/ number in a field of struct array
Show older comments

Hi everyone,
I am wondering what function should I use to reorgnize the name in a certain way (e.g., descending). I think "sort" function does not work here.
Thank you.
3 Comments
Cheeesepondue
on 29 Dec 2018
Edited: Cheeesepondue
on 29 Dec 2018
Jan
on 29 Dec 2018
What does "reorganize the names in a certain way" exactly mean? Which way? I guess per isakson's idea hits the point, but it is easier, if you reveal, what you want to achieve.
Cheeesepondue
on 29 Dec 2018
Accepted Answer
More Answers (1)
S = dir(..);
S = natsortfiles(S); % alphanumeric sort by filename
1 Comment
Cheeesepondue
on 30 Dec 2018
Categories
Find more on Operators and Elementary Operations 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!