content = fileread( 'trial.txt' ) ;matches = regexp( content, '[-\d\.]+(?=-\d)', 'match' ) ;data = str2double( matches );
% With above commands, I extract the specific numeric values in the attached file. But I need to limit this search from %beginning to "START OF RMS MAP" (line 32, but this number is variable) not all lines. How can I set the this last line while I'm using regexp.
Best Answer