I have multiple files that has been named after the same way : 'RefBu12CyclesAmpl0.20Freq2.25VR0.0000Dist4cmSilence25000Fs25MHz' . I tried to make a function that returns the values and make the difference between strings and digits, but I can make it return the correct values.
Any ideas?
function [File] = get_somenthing(file_name)
expression = '(?<Cycles>\d+)(?<Ampl>\D\S.+)(?<Freq>\d+)(?<VR>\d\S+)(?<Dist>\d.+)(?<Silence>\d+)(?<Fs>\d)'
File = regexp(file_name,expression,'names')