Create generatePeak.m