Error using print>LocalPrint

Good part of a day!

Very often, when I estimate a model, I got an “Error using print>LocalPrint
Something.eps: Cannot open file: permission denied”.

So now I am forced to use “nodisplay” option. However that doesn’t work if I want to have Bayesian IRF.

In this case I am getting the message :

Error using print>LocalPrint (line 298)
File_name_Bayesian_IRF_ispshock_1.eps: Cannot open
file: permission denied.

I would be very grateful if you could help me to solve this problem.

Kind regards,

Unfortunately, this is often a problem with Matlab, not with Dynare. It seems to have gone away in more recent Matlab versions.
It often helps to restart Matlab and delete all previously created figures with the same names.