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

14 ビュー (過去 30 日間)
Hamed Hedayatnia
Hamed Hedayatnia 2020 年 10 月 30 日
コメント済み: Hamed Hedayatnia 2020 年 10 月 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
Rafael Hernandez-Walls 2020 年 10 月 30 日
  3 件のコメント
Rafael Hernandez-Walls
Rafael Hernandez-Walls 2020 年 10 月 30 日
then using
polyfit
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 Center および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by