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

조회 수: 15 (최근 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
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