ARES II ERT instrument data format is chosen as example. The code can be modified for any instrument text file. Make sure to modify C = textscan(fid,'%f %f %f %f P%f P%f GEN %f %f %f %f %f %f'); line to suit your needs.
Sathyanarayan Rao (2020). Instrument output text file with header and unwanted lines to matlab matrix (https://www.mathworks.com/matlabcentral/fileexchange/65083-instrument-output-text-file-with-header-and-unwanted-lines-to-matlab-matrix), MATLAB Central File Exchange. Retrieved .