DifferentFreq matlab