Page 1 of 1

dr1 error

PostPosted: Sun Feb 11, 2007 8:37 pm
by larry
When I run my code, I get the following error message:

??? Subscript indices must either be real positive integers or logicals.

Error in ==> dr1 at 139
b = jacobia_(:,k0);


The vector, k0, contains a number of zeros. I've probably not set up the model correctly in my mod file. What should I look for?

PostPosted: Sun Feb 11, 2007 9:40 pm
by MichelJuillard
Hi Larry,

some variables in your model don't show up at the current period. Whenever you have a zero in k0, the corresponding variable is missing at period 't'
In version 3, the variables are ordered alphabeticaly (see lgy_)

Kind regards

Michel