"Weird" error when running .mod file


When I try to run my mod file, I get the following message:

Starting Dynare (version 4.2.5).
Starting preprocessing of the model file …
Found 24 equation(s).
Evaluating expressions…done
Computing static model derivatives:

  • order 1
    Computing dynamic model derivatives:
  • order 1
  • order 2
    Processing outputs …done
    Preprocessing completed.
    Starting MATLAB/Octave computing.

Error: File: Anders_test.m Line: 197 Column: 1
Unexpected MATLAB operator.

Error in dynare (line 120)
evalin(‘base’,fname) ;

The matlab file line 197 column 1 is,
"& 1.b List of variables"

But this file is generated automatically, right? What do I do about that?

Any help would be greatly appreciated! Thanks!

This file is indeed generated, but it can contain lines that are just copied from your MOD file.

Maybe you forgot to comment some lines in your MOD file?

If in doubt, please post it.