I have a graph like below.
How can I add a trendline line to it, like a trendline black stripe in the below figure?

답변 (2개)

Voss
Voss 2021년 12월 7일

0 개 추천

Look into movmean.
Star Strider
Star Strider 2021년 12월 7일

0 개 추천

There are any number of approaches, including lowpass filters of various descriptions.
Another one would be polyfit and polyval, perhaps with a degree 4 polynomial.
.

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

질문:

2021년 12월 7일

답변:

2021년 12월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by