How can I extract variables from a filename?
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT Files 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!