What you want to do is find high contrast peaks. Thus, you need a way to determine local maxima, as well as a way to measure the difference between the peak and surrounding values. The threshold value of this difference will determine the impulse peaks for you.
Assuming your input signal is called signal
%
peaks is a logical array with 1 where there is a good peak. You can use it to read peak heights from a signal using signal(peaks) and to find coordinates using find(peaks) .
Jonas source share