Error encountered with decomposing time series

1 vue (au cours des 30 derniers jours)
ANITA LIU
ANITA LIU le 9 Juil 2019
Commenté : Kaiguang le 11 Avr 2022
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

Réponses (1)

Bjorn Gustavsson
Bjorn Gustavsson le 10 Juil 2019
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 commentaire
Kaiguang
Kaiguang le 11 Avr 2022
Indeed, your posted script is in Python not Matlab.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by