Dynare example in the user guide

Dynare code is no executable MAtlab code. Rather, you need to install Dynare, add its Matlab subfolder to the Matlab search path and then run Dynare on the saved .mod-file. See the Dynare Manual for details.