From help-request at octave dot org Mon Feb 7 09:49:59 2005 Subject: indexing From: "Seba T." To: help at octave dot org Date: Mon, 7 Feb 2005 06:08:23 -0600 hi i was wondering about simple funciont like this example one for i=101:200 minusjeden(i)=minusjeden(i-1)+1/100; end; it works in matlab but in octave it complains that "i-1" for "i"=101 will give the value 100 which will be outside of the range given by "for" statement. I can use "if" statement to avoid the commands to be executed when i=100 but is there a way i could switch the range checking off ? -- Powered by Yoper Linux kernel 2.6.8 ; kde 3.3-1 www.303.prv.pl Jeśli musisz być pod winblowsem używaj www.firefox.pl ------------------------------------------------------------- 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 -------------------------------------------------------------