How to parse file name text and save values to variables
Show older comments
I have several file names that I want to parse through to find if they contain certain words.
ex1) HW_Azcut_y-plane_100-500Hz_V-Vp
ex2) XPOLcut_0.5-300MHz_Hp
I would like to be able to store the upper and lower values of frequencies into separate variables, find whether it is in Vertical (V) or Horizontal (H) , the cut type (Az, XPOL)
Accepted Answer
More Answers (1)
Sean de Wolski
on 2 Nov 2021
Look at various combinations of the following functions
split
contains
matches
extractBetween, extractBefore, extractAfter
1 Comment
Samantha Plesce
on 4 Nov 2021
Categories
Find more on String Parsing 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!