Check which version is running?

Is there an easy way, from within MATLAB to check which version of DYNARE is installed? I ask because I often use the DYNARE installation on a central server, so while I could reinstall the latest version in my home directory it’s a bit of a pain, so I wanted to see what version is currently running before I go about trying to do that.


I use
which dynare
at the Matlab prompt. It shows the path to the dynare directory

Recent versions of Dynare have command
that returns Dynare version number



The following function does the job both in dynare 3 and 4:

function isit = isDynare4
global endo_nbr;

isit = isempty(endo_nbr);