How do I normalize this signal
이전 댓글 표시
I have a noisy data set that I am trying to find peaks for (I am using the peakfinder function). The function works great when the baseline of the signal does not change, but when it does it no longer finds peaks well - I was thinking of filtering the data, but was unsure what kind of filter would actually help. Any help would be greatly appreciated. A sample below:

댓글 수: 1
Image Analyst
2014년 5월 13일
Please attach your data file.
채택된 답변
추가 답변 (2개)
Greg Dionne
2014년 5월 13일
1 개 추천
Since your peaks appear well-defined and are spaced far enough apart, I would suggest estimating the baseline by using medfilt1().
댓글 수: 6
Mikael
2014년 5월 14일
Image Analyst
2014년 5월 14일
Just filter it manually:
filteredSignal(1) = filteredSignal(2);
Have you tried a larger window? Also have you tried my suggestion of sgolayfilt() with a variety of window sizes?
Star Strider
2014년 5월 14일
From my experience, especially with biomedical signals, the bandpass filter is the easiest and most effective way of dealing with these problems.
Oh, well.
Greg Dionne
2014년 5월 14일
편집: Greg Dionne
2014년 5월 14일
Something doesn't look quite right with the removal. If you have removed the baseline, your spikes should be mostly positive. Try something like:
findpeaks(x-medfilt1(x,100),'MinPeakHeight',.01e4)
Mikael
2014년 5월 15일
Greg Dionne
2014년 5월 20일
편집: Greg Dionne
2014년 5월 20일
OK. It might be helpful to post your data file.
If you're not comfortable posting your data... maybe try something like:
[~,locs] = findpeaks(x-medfilt1(x,100),'MinPeakHeight',.01e4)
x(locs)
Image Analyst
2014년 5월 13일
0 개 추천
Some of those peaks are just barely above other peaks that don't have the red circle. Are you setting some threshold for how much a peak must exceed the "baseline" signal before it can be called a peak? What about using sgolayfilt() in the Signal Processing Toolbox. I have a demo available upon request.
댓글 수: 2
Mikael
2014년 5월 14일
Image Analyst
2014년 5월 15일
Sounds like you don't even have an interest in even trying to understand, and have decided in advance that you "can't really use it" without understanding it. For example, you haven't attached your data file to let anyone help you by trying things.
카테고리
도움말 센터 및 File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

