Page 1 of 1

??? Error using ==> fprintf

PostPosted: Sat Nov 24, 2012 12:06 pm
by zenghaiwei
Hi,all
I have run my .mod file before, it is OK. But after several days, I run it again. I encounter the following problem,

??? Error using ==> fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in ==> metropolis_hastings_initialization at 75
fprintf(fidlog,'%% MH log file (Dynare).\n');

Error in ==> random_walk_metropolis_hastings at 58
[ ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar, nblck, nruns, NewFile, MAX_nruns, d ] = ...

Error in ==> dynare_estimation_1 at 871
feval(options_.posterior_sampling_method,'DsgeLikelihood',options_.proposal_distribution,xparam1,invhess,bounds,gend,data,...

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> NKMest at 188
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;

why?

Thanks a lot!

Re: ??? Error using ==> fprintf

PostPosted: Mon Nov 26, 2012 10:52 am
by HoutanBastani
Please upgrade to Dynare 4.3.1.

Also, please post the data file.

Re: ??? Error using ==> fprintf

PostPosted: Thu Nov 29, 2012 10:37 am
by zenghaiwei
Hi,

I have updated to 4.3.1, it it OK. Thanks a lot!