[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
indexing
From: |
Seba T. |
Subject: |
indexing |
Date: |
Mon, 7 Feb 2005 06:08:23 -0600 |
User-agent: |
KMail/1.7 |
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
-------------------------------------------------------------