Operations on file names
Show older comments
I have the following text file which contains the following text lines: C:\Users\David\ab_1.obj
C:\Users\David\ab_5.obj
C:\Users\David\ab_300.obj
C:\Users\David\ab_27.obj
C:\Users\David\ab_233.obj
C:\Users\David\ab_1232.obj
C:\Users\David\ab_22.obj
I want to extract the numbers attached to the file names and the resulted numbers should stored in array
A=[1,5,22,27,233,300,1232]
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings 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!