sorting one field of struct
1 view (last 30 days)
Show older comments
files=dir('*.dat');
i want to sort files.name of the files struct by file name
0 Comments
Accepted Answer
Walter Roberson
on 30 May 2012
[junk, idx] = sort({files.name});
sortedfiles = files(idx);
0 Comments
More Answers (0)
See Also
Categories
Find more on Structures 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!