Error encountered with decomposing time series

조회 수: 1 (최근 30일)
ANITA LIU
ANITA LIU 2019년 7월 9일
댓글: Kaiguang 2022년 4월 11일
I am getting an error that says:
Error: File: Untitled.m Line: 2 Column: 47
Incorrect use of '=' operator. To assign a value to a
variable, use '='. To compare values for equality, use '=='.
error.PNG

답변 (1개)

Bjorn Gustavsson
Bjorn Gustavsson 2019년 7월 10일
try to call the function with either
,...,'model','additive') % property-value pairs
or with a variable model
my_model = 'additive';
result = seasonal_decompose(data,my_model);
Your syntax seems to look like some other languages (python?, R?)
HTH
  댓글 수: 1
Kaiguang
Kaiguang 2022년 4월 11일
Indeed, your posted script is in Python not Matlab.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by