Configuration issue with Mac

Hi, Apologies for the basic question, but I’ve been struggling for a while with this.

I am running 4.4.3 on Matlab R2016a on Mac OXS 10.11.6.

I have:

  • installed dynare to the applications folder
  • added (folder not subfolders) the dynare/matlab/ folder to the path
  • run:

cd /Applications/Dynare/4.4.3/examples
dynare example1.mod

And am getting the following error message:
"ERROR: Can’t open file example1.m for writing

Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in dynare (line 168)
fprintf(fid, ‘%s’, result);"

Do you have any suggestions?

Many thanks

Oh and I’ve set the Sharing & Permissions for both Matlab and the Dynare folder in Applications to Read & Write for all users.

Please try copying the example to a folder where you definitely have write permission and try whether the problem persists there.

That worked the trick. Thanks very much!