Very difficult waveform, having trouble smoothing it

1 view (last 30 days)
Hi all, I posted a question last week related to this, but after several days of trying different things I still made no progress.
Essentially I am interested in eliminating the mini-peaks in this dataset provided, where after filtering, what is left is a a smoothed-out, sinusoidally shaped wave. I have tried things such as sgolayfilt, medfilt, curve fitting, but still have no had any success.
Any help would be greatly appreciated, thanks!
  1 Comment
Star Strider
Star Strider on 30 Mar 2014
I don’t have a solution but I do have a suggestion. Plot a spectrogram of it to give you some insight into the problem. You data have a ‘chirp’ quality that will make it extremely difficult for you to determine what is signal and what is noise.
figure(1)
spectrogram(temp_data1)

Sign in to comment.

Answers (2)

ag123
ag123 on 30 Mar 2014
I also tried taking the fft and multiplying it with a band-pass filter square wave, but this didn't seem to help much.

Image Analyst
Image Analyst on 30 Mar 2014
I don't think any linear filter, or standard non-linear filters, will work on your signal. They generally operate on the whole signal and do the same thing everywhere. Since you have a very specific shape superimposed on only some portions of the signal I think you will have to write some very specific ad hoc code to recognize and "fix" those segments with the "bad" signal shape, while leaving the rest of the signal untouched.

Community Treasure Hunt

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

Start Hunting!