how to extract spikes from a figure
6 views (last 30 days)
Show older comments
Hello, eveyone.
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.
0 Comments
Accepted Answer
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
4 Comments
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
See Also
Categories
Find more on Electrophysiology in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!