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

11 次查看(过去 30 天)
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?

回答(1 个)

Rafael Hernandez-Walls
  3 个评论
Hamed Hedayatnia
Hamed Hedayatnia 2020-10-30
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by