필터 지우기
필터 지우기

Suggestions for filtering a signal

조회 수: 3 (최근 30일)
Gova ReDDy
Gova ReDDy 2013년 11월 27일
편집: Gova ReDDy 2013년 12월 4일
Hello, I have a signal as shown here signal and I need to filter it so that the resultant will only have the noiseless pulse signal.I have used the SG filter as sgolayfilt(b,3,31); adn the response is shown in the link image. The smoothed from SGfilter still needs to be filtered as the required is only the pure pulse signal.So tried using the LP filter as
d = fdesign.lowpass('Fp,Fst,Ap,Ast',3,5,0.5,40,100);
Hd = design(d,'equiripple');
output = filter(Hd,SGfiltereoutput);
But the resultant shown in the 3rd plot of the link image is very different to the one expected. Can anyone suggest how to get a pure pulse signal from the signal shown in the 1 part of link image. thanks.
  댓글 수: 2
Wayne King
Wayne King 2013년 11월 27일
Please attach the data
Gova ReDDy
Gova ReDDy 2013년 11월 27일
편집: Gova ReDDy 2013년 11월 27일
Yes,there are two attchments with one having a single pulse and other having set of pulses in it.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2013년 11월 27일
Well you obviously filtered it too much. I think the Savitzky-Golay filter is still the way to go. Why don't you just increase the window width to get more smoothing? But if you're looking to recover a pure delta function or step function, you're not going to do it by smoothing the signal - that's the exact opposite of what you want to do. I'm not sure how you define pulse. Can you give an example of the pure pulse or signal that you're trying to get?
  댓글 수: 20
Image Analyst
Image Analyst 2013년 12월 3일
It's just MATLAB code. And not even as hard as what's inside sgolay(). Can't you use the Coder to create C code to put onto your microcontroller?
Gova ReDDy
Gova ReDDy 2013년 12월 3일
편집: Gova ReDDy 2013년 12월 4일
I need to your comments on the on the output of SG and LP filters as they have the same output response except the LPfilter starts from zero insetad of original value.Need your suggestion to make the LPfilter output to start from original instead of zero and is my LPfilter needs any chnages for this particular implementation.
Also can you suggest an efficient method to find(count) the number of pulses occured in a particular time like now I am checking the peaks above a threshold and counting. Thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Signal Generation and Preprocessing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by