From help-octave-request at bevo dot che dot wisc dot edu Tue Dec 17 16:57:17 2002 Subject: index inconsistency? From: "John W. Eaton" To: "Albert F. Niessner" Cc: Octave Help Date: Tue, 17 Dec 2002 16:56:04 -0600 On 17-Dec-2002, Albert F. Niessner wrote: | Why does octave index matrices (vectors) from 1..m, 1..n and then the | indexing in Matrix -- the C/C++ code for dynamic loaded functions -- | done from 0..m-1, 0..n-1? | | It really is not that big of deal. I was just wondering if anyone knows | or remembers the rationale for doing it this way. Matlab uses 1, so that was necessary for the scripting language to be compatible. C/C++ arrays are 0-based, so the C++ interface to liboctave uses 0. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------