I am trying 'findpeaks' function in MATLAB and having trouble with it. It operates correctly on some cases but in the other, it misses out one particular peak. This is problematic since I was trying to apply it on a 2-D array in such a manner that it should look for a fixed number of well defined peaks in each row and return them to an output array.
Since it is missing one or sometime two peaks, the output array has subscription errors.
I have manually crosschecked but cannot work out why it should miss a particular peak.