Using Dynare in Matlab R2025a

Having loaded dynare 6.4 onto my computer and added it to the Matlab path, I tried running a model that I had run before on previous versions of dynare (6.2) and Matlab (R2024b). Unfortunately, I received the following error messages:

Error using [verLessThan](matlab:matlab.lang.internal.introspective.errorDocCallback(‘verLessThan’, ‘C:\Program Files\MATLAB\R2025a\toolbox\matlab\general\verLessThan.m’, 41)) ([line 41](matlab: opentoline(‘C:\Program Files\MATLAB\R2025a\toolbox\matlab\general\verLessThan.m’,41,0)))
Toolbox ‘matlab’ not found.

Error in [matlab_ver_less_than](matlab:matlab.lang.internal.introspective.errorDocCallback(‘matlab_ver_less_than’, ‘C:\dynare\6.4\matlab\matlab_ver_less_than.m’, 35)) ([line 35](matlab: opentoline(‘C:\dynare\6.4\matlab\matlab_ver_less_than.m’,35,0)))
r = verLessThan(‘matlab’, verstr);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in [dynare](matlab:matlab.lang.internal.introspective.errorDocCallback(‘dynare’, ‘C:\dynare\6.4\matlab\dynare.m’, 90)) ([line 90](matlab: opentoline(‘C:\dynare\6.4\matlab\dynare.m’,90,0)))
if matlab_ver_less_than(‘9.5’) % Should match the test in meson.build
^^^^^^^^^^^^^^^^^^^^^^^^^^^

I don’t suppose anyone can help me understand why I received these messages and what I might be able to do to get dynare running again?

That is a weird path error that sometimes crops up. Have a look at

Many thanks. This worked like a dream.