Error in metroplis.m

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.

Error in metroplis.m

Postby bamba » Wed Feb 01, 2006 9:07 am

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();)
best regards
bamba
 
Posts: 16
Joined: Fri Jan 06, 2006 11:01 am

Postby StephaneAdjemian » Wed Feb 01, 2006 10:12 am

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
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Postby bamba » Thu Feb 02, 2006 9:21 am

hi stephane,
thank a lot
kind regards
bamba
 
Posts: 16
Joined: Fri Jan 06, 2006 11:01 am

Postby gclian » Tue Mar 07, 2006 9:04 am

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)
gclian
 
Posts: 1
Joined: Fri Jan 06, 2006 11:00 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests