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

Réponses (2)

Star Strider
Star Strider le 7 Déc 2021

0 votes

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.
.

Catégories

En savoir plus sur Polynomials dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by