how to extract spikes from a figure
18 views (last 30 days)
I am processing some borehole data, but I have a problem now. After I plot the data, the figure has many spikes. I want extract those spikes.
Each spike is different,i.e.,different width and length. I was thinking using a moving average filter, but it does not work well. Or maybe I could define a cutoff value,like three times of the std of the total data. However, those spikes or outliers affect statistics, so its not accurate.
I am wondering is there any way I could do it automatically instead of manually pick up the start and end point of each spike.
If anyone has any advice, please let me know. Many thanks.
The image is here: please click the link. http://imgur.com/Sj1ZT
Walter Roberson on 29 Jun 2012
Effectively you want a peak-finding program?
http://www.mathworks.com/help/toolbox/signal/ref/findpeaks.html (requires Signal Processing Toolbox)
A sample plot might help us. http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
More Answers (1)
Image Analyst on 29 Jun 2012
If the built in peak detector doesn't work, then you might look elsewhere, such as to this paper:
Comparison of public peak detection algorithms for MALDI mass spectrometry data analysis