Combined analysis of electroencephalography (EEG) and functional magnetic resonance imaging (fMRI) has the potential to provide higher spatiotemporal resolution than either method alone. In some situations, in which the activity of interest cannot be reliably reproduced (e.g., epilepsy, learning, sleep states), accurate combined analysis requires simultaneous acquisition of EEG and fMRI. Simultaneous measurements ensure that the EEG and fMRI recordings reflect the exact same brain activity state.