Azzera filtri
Azzera filtri

how to fit trend line in time series

17 visualizzazioni (ultimi 30 giorni)
Hi. I plotted a figure of my time series but I want to calculate and fit in the trend line.
Can I use the polyfit to do this?

Risposta accettata

Star Strider
Star Strider il 22 Mar 2021
If you have the Statistics and Machine Learning Toolbox, use the refline or refcurve functions. Other options are also linked in those documentation sections.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by