Matlab Find Peaks And Valleys, I have the following data from an accelerometer.