How to add trendline

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

Respuestas (2)

Star Strider
Star Strider el 7 de Dic. de 2021

0 votos

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

Categorías

Más información sobre Polynomials en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 7 de Dic. de 2021

Respondida:

el 7 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by