[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave bug ?
From: |
Dmitri A. Sergatskov |
Subject: |
Re: Octave bug ? |
Date: |
Sat, 26 Feb 2005 18:32:36 -0700 |
User-agent: |
Mozilla Thunderbird (X11/20041216) |
Madhusudan Singh wrote:
Using version 2.1.64 on Debian.
octave:27> [a,b]=min([0, 2, 3, 7, 0.5])
a = 0
b = 1
from 'help min':
...
If called with one input and two output arguments, `min' also
returns the first index of the minimum value(s). Thus,
[x, ix] = min ([1, 3, 0, 2, 5])
=> x = 0
ix = 3
In your example index of "0" is 1
Dmitri.
--
-------------------------------------------------------------
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
-------------------------------------------------------------
- Octave bug ?, Madhusudan Singh, 2005/02/26
- Re: Octave bug ?,
Dmitri A. Sergatskov <=