Starting Dynare (version 4.2.5).
Starting preprocessing of the model file …
Found 6 equation(s).
Evaluating expressions…done
Computing static model derivatives:
order 1
Computing dynamic model derivatives:
order 1
order 2
ERROR: Can’t open file example1.m for writing
??? Error using ==> dynare at 114
DYNARE: preprocessing failed
That is an error that you can get when you do not have write permission in the working directory. To fix this, copy example1.mod to a directory that you create somewhere else (and will thus be able to write to). Then change the working directory of Matlab (or Octave) to this new directory and give it a shot.
I have the same problem but with Windows XP installed dynare 4.2.5. I am using Matlab 6.5 and cannot run any of the examples in the directory of “Examples”, although I followed the installation guide, I think.
Did you try running the examples from a different directory?
Also note that Dynare supports Matlab 7.0 or later, so there may be other problems. It is recommended that you upgrade your Matlab version if you want to use Dynare.
Unfortunately, I tried to run the examples from another directory but still I get the same error. The problem may be the Matlab version 6.5. Now I need to get version 7 or higher.