Kevin Chang

/programming/phys

Contact

Physics Data Analysis

Purpose: School lab

Project Type: MATLAB, LaTeX

Date: Spring, 2020

Various 4th year undergraduate physics labs allowed for data analysis using Matlab with reports written in LaTeX. Three examples from the Phys 432: Modern Physics Laboratory course are included.

Hydrogen-Deuterium Mass Ratio

This lab used MATLAB to automatically detect the center of various peaks in emission spectra. A Gaussian curve was fit to noisy data, which then had its peak selected. Uncertainties were manually chosen. Raw data given was in the csv form, and visualizations were created in MATLAB. Other lab partners further plotted the data using Python.

Frank Hertz Experiment

Similar techniques with automatic peak detection were used to detect peaks and troughs in the raw data for this experiment. The raw data were from paper charts, which were then digitized to digital data through using the digitize2() function in MATLAB.

Zeeman Effect

MATLAB was used to automatically find peaks, with manual sampling of the data used to label peaks that were not automatically detected. Other lab partners used Python and furthered the data analysis with the data processed from MATLAB.