A. How to compare the dn/n0 from the simulation and from the measurement:
    1. Copy all e3-slice-y from the SCARF machine into several directories.
       One directory is for slices at the same position.
       
    2. Run "sliced-compare-measurement.m" with mode/information "density" to write down the dw/w0 and the dn/n0 measurement results.
       This step could be very slow, so it is useful only to execute two slices for every slice position/directory.
       Also check all the parameters are set correctly.
       
    3. Copy the ne-slice-z files from the SCARF into a directory.
    
    4. Run "wakefield_evolution.m" to get the wakefield evolution profile from (ne-slice-z) directory from step 3.
       Make sure the dataType variable is "density".
    
    5. Run "extract_meas_data_from_mat_file.m" to get the amplitude of dn/n0 measurement from file produced at step 2.
       Make sure the toRead variable is "density".

B. How to compare the dw/w0 from the simulation and from the measurement:
    1. Do step A.3
    
    2. Run "rotate_density_data_and_transform.m" to get the dw/w0 actual value and write .h5 files into a directory.
       Also delete all h5 files if they are present in the output directory.
       Make sure all parameters are set correctly.
    
    3. Do step A.1 and A.2.
       It does not need to be repeated if already done.
    
    4. Do step A.4 and A.5 with variables set to "frequency".

C. How to compare the measured and actual dw/w0 from various simulation project:
    1. Do steps in B while in step B.4, specify the correct 'fdirOut' and 'fcode'.
    
    2. Gather the files generated in step B.4 in one folder.
    
    3. Run "compare-multiple-simulations.m" script and specify 

D. Test inversion algorithm for density comparison
    1. Run "inverse-dww0.m" with correct parameters and correct inversion algorithm.
       Make sure the path is already added to Matlab.
    
    2. Do steps A.4 and A.5
