Error encountered with decomposing time series

1 visualización (últimos 30 días)
ANITA LIU
ANITA LIU el 9 de Jul. de 2019
Comentada: Kaiguang el 11 de Abr. de 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

Respuestas (1)

Bjorn Gustavsson
Bjorn Gustavsson el 10 de Jul. de 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 comentario
Kaiguang
Kaiguang el 11 de Abr. de 2022
Indeed, your posted script is in Python not Matlab.

Iniciar sesión para comentar.

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by