Curve smoothing in MATLAB

How can I smooth this curve in MATLAB? I have tried smoothdata() with all options but they typically result in a straight line. Same with fit(). How can I get rid of the bumps?

Answers (1)

One option would be a lowpass filter, assuming that the independent varialb is regularly sampled. First, calculate the Fourier transforrm either using fft or pspectrum and choose the cutoff requency using that information.
imshow(imread('cxr83combi.png'))
.

Asked:

on 28 Jul 2023

Answered:

on 28 Jul 2023

Community Treasure Hunt

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

Start Hunting!