Changed the parameters in flex_spectrum_pmepr.m