Energe Detection ................\ed.m ................\generate.m ................\mainrun.m ................\makethreshold.m