How to plot 'smooth' cell array graphs

4 views (last 30 days)
Hello, I would like to 'smooth' out the curves of these plots and plot it on top of the exisitng 'noisy' graph.
for ci= 1:length(datecell)
grid on;
Where it should look like the red curve:
I have tried using 'rmoutliers' or 'smooth' functions but they do not work, possibly due to bad coding.
Many thanks in advance.

Accepted Answer

Asvin Kumar
Asvin Kumar on 18 Mar 2021
You're looking for the fit function from the Curve Fitting Toolbox. There are some great examples on the doc page that should help you get started.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by