Regarding how to remove oscillations

25 views (last 30 days)
Jerry Jacob
Jerry Jacob on 20 Sep 2020
Commented: star star on 18 Feb 2022
Hi,
I am writing a code to reconstruct Fenton Karma model via Fourier Series using lsqcurvefit command. On recosntruction ,I got some oscillations.How can I remove them. I have attached the code with the required figure.

Answers (1)

Image Analyst
Image Analyst on 20 Sep 2020
Use medfilt1() or sgolayfilt() to get rid of small local oscillations.
  3 Comments
Image Analyst
Image Analyst on 17 Feb 2022
@star mahdavi take a look at all the different input options for findpeaks() and find one that will get rid of small ones, like maybe MinPeakHeight or something.
star star
star star on 18 Feb 2022
Thank you, I figure it out.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!