Unable to write to MAT-file C:\...\gstep.mat

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Unable to write to MAT-file C:\...\gstep.mat

Postby streetjax » Thu Mar 23, 2017 3:26 pm

Hello Johannes!
I think I have a problem with the
Code: Select all
mode_compute=5
option of the
Code: Select all
estimation
routine of DYNARE.
the problem I always get is:
Error using save
Unable to write to MAT-file C:\Users\...\gstep.mat

File may be corrupt.

Error in mr_gstep (line 85)
save('gstep.mat','x','h1','f0')

I tried deleting the mentioned file, but it seems not working. I have to add that I am using today's unstable version of Dynare. (master-2017-03-22-76097a7)
I have read in an old post that something similar may be a bug.
Can you please check it out?
And now that you are on it, tell me what can I change (or look at) on my estimation? I really would appreciate it. : )
Yours cordially,
ST
Attachments
jules1.zip
*.mod dataset and SS files on the zip
(14.29 KiB) Downloaded 65 times
streetjax
 
Posts: 10
Joined: Mon Dec 12, 2016 5:07 pm

Re: Unable to write to MAT-file C:\...\gstep.mat

Postby jpfeifer » Thu Mar 23, 2017 6:53 pm

This does not sound like a bug, but rather like a problem of insufficient write permissions for your Matlab session. Are you sure you have the necessary user rights for writing in that directory?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Unable to write to MAT-file C:\...\gstep.mat

Postby streetjax » Fri Apr 14, 2017 1:14 pm

Hello Johannes!
I appreciate very much the time you spend by looking at my problem (and everyone else's).
Thank you very much. I know it's a bit late, but I think it's better better later than never.
Have a nice day. : )

By the way, I did not knew how to sole the problem, so I just used another
Code: Select all
mode_compute
option. I did not knew how to further modify the permissions, specially considering that I was the admin account on both computers I tried. (you don't have to answer to this, this message was only to tell you thanks)
streetjax
 
Posts: 10
Joined: Mon Dec 12, 2016 5:07 pm

Re: Unable to write to MAT-file C:\...\gstep.mat

Postby jpfeifer » Fri Apr 14, 2017 1:18 pm

Thanks for the kind words.

What you could have done in the unstable version is disable the saving of files during mode finding via
Code: Select all
optim=('SaveFiles',0)
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests