Clear Filters
Clear Filters

how to fit trend line in time series

12 views (last 30 days)
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?

Accepted Answer

Star Strider
Star Strider on 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.

More Answers (0)

Categories

Find more on Conditional Mean Models in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!