How to add trendline

111 Ansichten (letzte 30 Tage)
Buket Sahin
Buket Sahin am 7 Dez. 2021
Beantwortet: Star Strider am 7 Dez. 2021
I have a graph like below.
How can I add a trendline line to it, like a trendline black stripe in the below figure?

Antworten (2)

Voss
Voss am 7 Dez. 2021
Look into movmean.

Star Strider
Star Strider am 7 Dez. 2021
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.
.

Community Treasure Hunt

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

Start Hunting!

Translated by