Sorting of column 'folder' present in 'struct'
Show older comments
I have such a 'struct' and I want to make the column 'folder' in order. How can I do this?

3 Comments
Jonas
on 9 Nov 2022
i don't understand, the column folder is already sorted correctly?
Alberto Acri
on 9 Nov 2022
Another approach is to download NATSORTFILES here:
unzip it and then use it like this:
A = 'C:\Users\Alberto\Desktop\GLOBAL';
B = dir(fullfile(A,'DATA*','*'));
B = natsortfiles(B,[],'rmdot','noext');
Accepted Answer
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!