How can I extract variables from a filename?
Afficher commentaires plus anciens
I am trying to read variables from a bunch of file names that all have a consistent format like:
filename = string1_useless_float1_useless_float2_ etc, etc
How can I read certain variables from the file name (strings, floating points) while skipping over unimportant text in between? I'm trying to use these variables in another program but I have literally hundreds of thousands of files so doing this by hand is clearly out of the question.
Thank you!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!