# Dynare 6.3 and MatlabR2025a error

**URL:** <https://forum.dynare.org/t/dynare-6-3-and-matlabr2025a-error/27970>\
**Category:** Installation and Setup\
**Created:** [15 September 2025 06:47 UTC](https://forum.dynare.org/t/dynare-6-3-and-matlabr2025a-error/27970 "2025-09-15T06:47:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michelle1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@Michelle1](https://forum.dynare.org/u/Michelle1)\
**Post date:** [15 September 2025 06:47 UTC](https://forum.dynare.org/t/dynare-6-3-and-matlabr2025a-error/27970/1 "2025-09-15T06:47:50Z")

</div>

Hello,

I tried to test Dynare 6.3 with Matlab2025a by running the file agtrend.mod in the default Examples folder of Dynare. Then the below error shown up:

Starting Dynare (version 6.3).  
Calling Dynare with arguments: none

ERROR: Could not open file: agtrend.mod

Preprocessing time: 0h00m00s.

Error using **[dynare](matlab:matlab.lang.internal.introspective.errorDocCallback(‘dynare’, ‘C:\dynare\6.3\matlab\dynare.m’, 297))** ([line 297](matlab: opentoline(‘C:\dynare\6.3\matlab\dynare.m’,297,0)))  
Dynare: preprocessing failed

Can someone help suggest some solutions to fix this?

Thank you very much for your help.

Michelle.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [15 September 2025 06:56 UTC](https://forum.dynare.org/t/dynare-6-3-and-matlabr2025a-error/27970/2 "2025-09-15T06:56:12Z")

</div>

Is that the full error message? Did you set the Matlab working directory to the `examples` subfolder where the `mod` file is located?

---

<div class="post-metadata">

**Author:** ![Michelle1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@Michelle1](https://forum.dynare.org/u/Michelle1)\
**Post date:** [17 September 2025 19:59 UTC](https://forum.dynare.org/t/dynare-6-3-and-matlabr2025a-error/27970/3 "2025-09-17T19:59:08Z")

</div>

Hi,

Thank you for your response. Yes, that’s the full message I had.

Following your suggestion, here’s what I did:

cd C:\dynare\6.3\examples\ to set the full path to the examples folder

Then I ran the file agtrend.mod in the examples folder

dynare agtrend.mod

And i got the following error

Quote

Warning: File ‘agtrend.log’ not found.

> In **[dynare](matlab:matlab.lang.internal.introspective.errorDocCallback(‘dynare’, ‘C:\dynare\6.3\matlab\dynare.m’, 194))** ([line 194](matlab: opentoline(‘C:\dynare\6.3\matlab\dynare.m’,194,0)))

Error using **diary**  
agtrend.log: Cannot open file: permission denied.  
Error in **[dynare](matlab:matlab.lang.internal.introspective.errorDocCallback(‘dynare’, ‘C:\dynare\6.3\matlab\dynare.m’, 196))** ([line 196](matlab: opentoline(‘C:\dynare\6.3\matlab\dynare.m’,196,0)))  
diary(logfile)  
^^^^^^^^^^^^^^

Unquote

I don’t know what I did wrong. Thank you very much for your help and I look forward to your reply.

Michelle.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [19 September 2025 06:13 UTC](https://forum.dynare.org/t/dynare-6-3-and-matlabr2025a-error/27970/4 "2025-09-19T06:13:23Z")

</div>

Now you are in the right folder, but you don’t have sufficient write permissions. That can be due to missing admin rights or a cloud or antivirus service blocking the access.

---

<div class="post-metadata">

**Author:** ![Michelle1](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@Michelle1](https://forum.dynare.org/u/Michelle1)\
**Post date:** [19 September 2025 15:00 UTC](https://forum.dynare.org/t/dynare-6-3-and-matlabr2025a-error/27970/5 "2025-09-19T15:00:17Z")

</div>

Hi,

Thank you very much for your response. I will try to see how to be able to access that folder.

Michelle.
