This document provides an overview of electroencephalography (EEG) and event-related potentials (ERPs). It explains that EEG measures neuronal activity from the scalp, while ERPs measure evoked brain responses to stimuli over time. The document then introduces MATLAB and demonstrates how to import raw EEG data, re-reference it, filter, epoch, and create ERPs in the EEGLAB toolbox to analyze brain responses. Statistical analysis can then be performed using Fieldtrip.