Hello,
I'm writing a code using findpeaks where I only want to find peaks within a certain intervall of each other. I thought MinPeakDistance would work, but it did not. When I'm not using MinPeakDifference I get the followng locs (x-values of the peaks);
1.0300 1.3000 1.5900 1.8700 2.1400 2.4100 2.7000 2.9700
, but when I use MinPeakDistance set to 0.3, both 1.87 and 2.14 dissapear. I want the array with MinPeakDistannce set to 0.3 to give the values;
1.0300 1.5900 2.1400 2.7000
, instead of
1.0300 1.5900 2.4100 2.9700
. Can anyone help me?
Thank you in advance
Best Answer