get the following error message when I have have a variable QUEUE
and then for i:2500, I loop through QUEUE(i). I don't understand why
Matlab is attempting to access QUEUE(-2.14748e+009)....Can anyone
help me with this error? I suspect it might be a floating point
problem, is it possible?
----------------------
??? Attempted to access QUEUE(-2.14748e+009); index must be a
positive integer or logical.
Error in ==> CompBNodeMeas at 15
QUEUE(i)=0;
--------------------------
The strange thing is that it doesn't happen every time. Sometimes I get the error, sometimes the program executes till completion.
Any help would be greatly appreciated.