From: Jim Carter Date: 2011-01-27T02:29:45+09:00 Subject: Re: Matrix Referencing Oops you are correct! MATLAB which I wrote the template code in has a starting index 1, while Ruby has starting index 0. I overran my index. I told myself in the beginning I had to be wary of this and I just fell into the trap. Thanks -- Posted via http://www.ruby-forum.com/.