How to plot 'smooth' cell array graphs
1 回表示 (過去 30 日間)
古いコメントを表示
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)
figure,plot(datecell{ci},smcell{ci});
end
grid on;
Where it should look like the red curve:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/550748/image.png)
I have tried using 'rmoutliers' or 'smooth' functions but they do not work, possibly due to bad coding.
Many thanks in advance.
0 件のコメント
採用された回答
Asvin Kumar
2021 年 3 月 18 日
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.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!