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!