Debugged PD_beta_epochs_coh.m.