I have the following code written to copy certain lines from one text file:
contents = fileread('observedsn.txt');[starts, stops] = regexp(contents, ... '^([^|]*\|){24}(Ib|Ib/c|Ic|II|IIP|IIn|IIPec)\|.*$', ... 'start', 'end', 'lineanchors', 'dotexceptnewline');
How would I proceed to export these text lines to a new text file?
I have attached my text file.
Best Answer