This trial will compare the efficacy and tolerability of 20 Hz vs. 1 Hz vs. sham repetitive transcranial magnetic stimulation targeting the dorsomedial prefrontal cortex, delivered twice daily over 15 days, in patients with a diagnosis of major depressive disorder. The trial will include structural and functional MRI, EEG, and behavioral measures obtained before, during, and after treatment.