Main script post-processing raw data of S2 measurement, written in MATLAB