.mod file does not run

Hey,

something with my Dynare installation did not work. I can run this type of code and see the results of the example 1 simulations:

addpath(‘C:\dynare\6.2\matlab’)
savepath
cd(‘C:\dynare\6.2\examples’)
dynare example1

But as soon as I try to save a .m as a .mod , Matlab does not recognise the file type anymore and then you cannot run it anymore at all because the run button and other features cannot be chosen anymore. This code for example is not working:

cd(‘C:\dynare\work’)
dynare NKO.mod

Also if I open example 1 on my own in matlab or any other .mod file, I cannot run it. It seems like no .mod file is currently working on this computer. I also already tried to deinstall and reinstall and all other kinds of tricks.

Thanks so much for your help!

Best,
Marie

You are not supposed to save Matlab scripts as mod-files. Only the Dynare mod file like example1.mod is supposed to have that type.