[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid index error
From: |
Rich Shepard |
Subject: |
Re: Invalid index error |
Date: |
Sun, 1 Aug 2004 15:27:11 -0700 (PDT) |
On Sun, 1 Aug 2004, Geraint Paul Bevan wrote:
> To use the for loop, you just need to change (i+1) to (i):
Geraint,
Ah! I knew I couldn't start with 0 but there had to be a way.
> However, in this case, you can make use of Octave's "prod" function to
> save yourself a little work:
>
> octave:4> prod(a)
> ans = 0.010271
Kewel! Do I page through the manual to find these gems? The index is
rather sparse.
Again, many thanks,
Rich
--
Dr. Richard B. Shepard, President
Applied Ecosystem Services, Inc. (TM)
<http://www.appl-ecosys.com>
-------------------------------------------------------------
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
-------------------------------------------------------------
- Invalid index error, Rich Shepard, 2004/08/01
- Message not available
- Message not available
- Re: Invalid index error, Geraint Paul Bevan, 2004/08/01
- Re: Invalid index error,
Rich Shepard <=
- Re: Invalid index error, Geraint Paul Bevan, 2004/08/01
- Re: Invalid index error, Rich Shepard, 2004/08/01
- Re: Invalid index error, Geraint Paul Bevan, 2004/08/01
- Re: Invalid index error, Rich Shepard, 2004/08/01
- Re: Invalid index error, Geraint Paul Bevan, 2004/08/01