Error in metroplis.m

Hi,
i use Matlab 6.1, estimating a model with bayesian approach, Matlab announces an error in metropolis.m at line 1463 (line 1463 of this function is subindx=subset():wink:
best regards

Dear user,

The problem is with your version of matlab which does not accept functions with empty arguments. This works fine with version 7 of matlab but not with previous ones. All you’ve got to do when you find this kind of error message is first to replace :

subindx=subset();

by

subindx=subset;

and second to edit the corresponding m file and change the first line

function jndx = subset();

for

function jndx = subset;

We will correct these little annoying bugs in the next release of dynare (some are already corrected but we have to find them all!) .

Best,
St

hi stephane,
thank a lot
kind regards

I use Matlab 6.5 and dynare v3.064. This problem still exists. After removing “()” of the " subindx=subset()" and “function jndx=subset()”. This problem disappers. Thanks. 8)