Hello. Thanks for the swift reply! I was able to fix it by adding these lines:
%--------------------------------------------------------------------------
% 4. Call Dynare
%--------------------------------------------------------------------------
restoredefaultpath;
rehash toolboxcache;
savepath;
addpath(‘C:\dynare-6.2\matlab’);
dynare Shadowdyn.mod noclearall
rmpath(‘C:\dynare-6.2\matlab’);