How to add trendline

136 次查看(过去 30 天)
Buket Sahin
Buket Sahin 2021-12-7
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
Look into movmean.

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

类别

Help CenterFile Exchange 中查找有关 Directed Graphs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by