MATLAB Answers

Error encountered with decomposing time series

1 view (last 30 days)
ANITA LIU
ANITA LIU on 9 Jul 2019
Answered: Bjorn Gustavsson on 10 Jul 2019
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

  0 Comments

Sign in to comment.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 10 Jul 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

  0 Comments

Sign in to comment.

Sign in to answer this question.