How can I obtain slope of a trend line calculated for a time serie

17 vues (au cours des 30 derniers jours)
Hamed Hedayatnia
Hamed Hedayatnia le 30 Oct 2020
Hi folks,
I wanna obtain the slope of the trend lines which have been calculated for time series. As you can see in the attached plot, there are 3 time serie and trend line has been shown for each one. How can I obtain the slope of each trend line?

Réponses (1)

Rafael Hernandez-Walls
Rafael Hernandez-Walls le 30 Oct 2020
  3 commentaires
Hamed Hedayatnia
Hamed Hedayatnia le 30 Oct 2020
polyfit is not applicable on time series because the x values are dates.
Error using polyval (line 67)
Inputs must be floats, namely single or double.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by