Page 1 of 1

Error:Unexpected MATLAB operator

PostPosted: Mon Jan 12, 2015 2:22 pm
by gregor.marc7
Hello. I am new to the forum, and also a new user of a dynare program.
I set the model, A New Keynesian model with Calvo pricing with inflation indexation in log-linear form,but the matlab do not want to process.
It shows me:
Error: File: Monetary13.m Line: 255 Column: 1
Unexpected MATLAB operator.
Error in dynare (line 180)
evalin('base',fname) ;


Please help.

Thank you.

Re: Error:Unexpected MATLAB operator

PostPosted: Mon Jan 12, 2015 4:50 pm
by HoutanBastani
Please look at the error message. It says, "Error: File: Monetary13.m Line: 255 Column: 1." So, opening Monetary13.m (which is output by the dynare preprocessor when it reads Monetary13.mod), and navigating to line 255, you see that there are a bunch of '=' signs. Opening Monetary13.mod, we see that you are using one-line comments '//' where you should be using multi-line comments '/*'

Re: Error:Unexpected MATLAB operator

PostPosted: Mon Jan 12, 2015 6:45 pm
by gregor.marc7
Tnx. Problem solved :)