Read images from a folder in a particular order
2 views (last 30 days)
Show older comments
I have a folder, and subfolder of images in it. When i read images it comes in the order 1, 10, 11, 12...etc, instead of 1, 2, 3, 4....
What should i do to read the images from a folder of subfolders in 1, 2, 3, 4,.... order from each subfolder, instead of 1, 10, 11, 12.... order
0 Comments
Accepted Answer
DGM
on 7 Apr 2021
This is pretty much what natsortfiles is for
See the example by the author here:
0 Comments
More Answers (0)
See Also
Categories
Find more on Import, Export, and Conversion 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!