MATLAB Answers

0

Error encountered with decomposing time series

Asked by ANITA LIU on 9 Jul 2019
Latest activity Answered by 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.

1 Answer


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.