How can I make imageDatastore sort naturally?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Pranay Koppula
il 8 Ott 2021
Modificato: Kamal
il 28 Dic 2022
When I use imageDatastore to store files, the files are sorted according to their names like so:

This is how MATLAB sorts them by default. How can I make it store the files in an image datastore in the correct order ('1,5,10,15,20' rather than '1,10,15,20,5')? Or is there a way to create a new datastore with the sorted filenames? I understand that sort_nat or natsortfiles could be used in some way, but I'm not sure how. I can't sort and store the images in any other way(like in a table or directory), it has to be an image datastore.
Risposta accettata
Pranay Koppula
il 8 Ott 2021
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!