how to fit trend line in time series

24 Ansichten (letzte 30 Tage)
Nurul Ain Basirah Zakaria
Nurul Ain Basirah Zakaria am 22 Mär. 2021
Beantwortet: Star Strider am 22 Mär. 2021
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?

Akzeptierte Antwort

Star Strider
Star Strider am 22 Mär. 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.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by