Error encountered with decomposing time series

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 日

0 投票

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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

2019 年 7 月 9 日

コメント済み:

2022 年 4 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by