# Indices error

**URL:** <https://forum.dynare.org/t/indices-error/2120>\
**Category:** Dynare help (legacy posts)\
**Created:** [26 August 2011 15:46 UTC](https://forum.dynare.org/t/indices-error/2120 "2011-08-26T15:46:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peer](https://forum.dynare.org/letter_avatar_proxy/v4/letter/p/e9bcb4/32.png) [@peer](https://forum.dynare.org/u/peer)\
**Post date:** [26 August 2011 15:46 UTC](https://forum.dynare.org/t/indices-error/2120/1 "2011-08-26T15:46:53Z")

</div>

hi all,  
I have got a indice error, I check the mod file follow the post in forum,but I have not remove this error. following is my error log and attachment is my mod file.  
I appreciate anyone post her/his reply. thanks again.

There are 5 eigenvalue(s) larger than 1 in modulus  
for 5 forward-looking variable(s)

The rank condition is verified.

error: subscript indices must be either positive integers or logicals.  
error: called from:  
error: c:\dynare\4.2.1\matlab\dr1.m at line 550, column 32  
error: c:\dynare\4.2.1\matlab\resol.m at line 147, column 32  
error: c:\dynare\4.2.1\matlab\stoch\_simul.m at line 66, column 21  
error: c:\dynare\work\ndsge\ndsge.m at line 242, column 6  
error: c:\dynare\4.2.1\matlab\dynare.m at line 132, column 1  
[ndsge.mod](https://forum.dynare.org/uploads/default/original/2X/c/cd8499f62261eba30794a1a3038d98bfb223e479.mod) (1.89 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [29 August 2011 11:18 UTC](https://forum.dynare.org/t/indices-error/2120/2 "2011-08-29T11:18:56Z")

</div>

Your timing for PI is wrong. It never appears contemporaneously. And please put order=1 in stoch\_simul because the default second order approximation won’t work with your shock sizes.

---

<div class="post-metadata">

**Author:** ![peer](https://forum.dynare.org/letter_avatar_proxy/v4/letter/p/e9bcb4/32.png) [@peer](https://forum.dynare.org/u/peer)\
**Post date:** [29 August 2011 12:15 UTC](https://forum.dynare.org/t/indices-error/2120/3 "2011-08-29T12:15:26Z")

</div>

> [@jpfeifer](#):
>
> Your timing for PI is wrong. It never appears contemporaneously. And please put order=1 in stoch\_simul because the default second order approximation won’t work with your shock sizes.

hi jpfeifer,  
thanks for your post! I have removed it! thanks again!
