03-30-2017 07:54 AM - edited 03-30-2017 07:56 AM
Hi all,
I get an index out of bounds error for the Mathscript placed inside the control loop when the inputs p,q reach 2,1 on line 16.
p increments once per 160 iterations on the control loop.
q increments once per 1 iteration on the control loop, then resets to 1 when it reaches 160.
I am confused because line 16 shouldn't be executed when the values p,q are 2,1.
03-30-2017 06:23 PM
I eventually figured it out.
It turns out that Mathscript only takes single entries as indexes, and doesn't 'n-1' as an index.