thanks! this is indeed the bug. still have some questions though.
* the w_draws_b array is randomly initialized, but i thought that random values should be identical in any execution of octave (unless I seed them to time, which i don't)
* also, the problem goes away quite consistently whenever i add an empty line anywhere in the file, and don't go away in any other case. could it be that octave is persisting its memory in some cases
between runs?
Yuval
From: Dmitri A. Sergatskov <address@hidden>
To: Yuval Lifshitz <address@hidden>
Cc: "address@hidden"
<address@hidden>
Sent: Monday, December 17, 2012 1:58:06 AM
Subject: Re: intermittent error "undefined near line..."
On Sun, Dec 16, 2012 at 3:23 AM, Yuval Lifshitz
<address@hidden> wrote: