Dynare 5.4 with Matlab 2019a Problem

hi, everyone, recently I was trying to replicate the results of Climate Transition Risk and the Role of Bank Capital Requirements(Garcia-Villegas & Martorell,2024). The replication file said the .mod is running under the version of dynare 5.4. After installing dynare 5.4 in Matlab 2019a, I try to run the .mod, but it did not work and always reported the following error:
cannot open file: permission denied.

I have no idea how to solve this problem. please help me .

Usually, that is a problem with insuficient write permissions in the folder you are using or because a cloud drive blocks write access.

thank you very much, professor! Could you please give me some clues to solve this problem? Meanwhile I tried to replicate the results for several times using dynare 4.5.7 and found that the replication code used a function called obj_func, which I could not find in dynare 4.5.7. Does this mean that the function obj_func is included in dynare 5.4? Is it possible if I use the function obj_func as a outside function in dynare 4.5.7? Thanks again!

Replication Codes for Climate Transition Risk and the Role of Bank Capital Requirements.zip (30.4 KB)
here is the replication downloaded from the author’s personal webpage

  1. Simply pause any cloud drive that may be active and use a folder on your disk that has write permissions.
  2. I can run the code in Dynare 6.3 without issues. The obj_func is a local function defined in the Matlab files provided by the authors.