I have a struct with a list of filenames which I want to extract a piece of data from, the filename is in the format
All I wish to be left with is
So that I can write those digits onto an image.I have used strep and regex to isolate pieces of data in the past from a string but have not been able to figure out how to isolate data before an expression such as kHz etc.
expression = '\d*\.\dkHz';
matchStr = regexp(str,expression,'match')
but it won't give me the "_1".