Mass spectrometry (MS) is an analytical technique used to measure the mass-to-charge ratio (\(m/z\)) of ions within a sample. It is widely used to identify unknown compounds, quantify known materials, and determine the structural properties of molecules.