Problem in the process of bayes estimation

I use the dynare4.1.3 in matlab6.5 under the WinXp,
It is nice for dynare do the work on solveing and shock simulating, but some problem happened during the process of bayes estimation.

take smetswouters2003 download from the forums for example,
the result is as following:

??? Error using ==> NaN
Too many input arguments.

Error in ==> c:\dynare\4.1.3\matlab\set_prior.m
On line 141 ==> bayestopt_.p6 = NaN(size(bayestopt_.p1)) ;

Error in ==> c:\dynare\4.1.3\matlab\dynare_estimation_1.m
On line 83 ==> [xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);

Error in ==> c:\dynare\4.1.3\matlab\dynare_estimation.m
On line 62 ==> dynare_estimation_1(var_list,varargin{:});

Error in ==> c:\dynare\4.1.3\case\examples\examples\smetswouters2003.m
On line 355 ==> dynare_estimation(var_list_);

Error in ==> c:\dynare\4.1.3\matlab\dynare.m
On line 132 ==> evalin(‘base’,fname) ;

how to solve it?

First you should upgrade to the latest version of Dynare. The one you are using is old and has several known bugs.