help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding the index of the smallest value in a vector


From: Soren Hauberg
Subject: Re: Finding the index of the smallest value in a vector
Date: Thu, 18 Nov 2004 09:24:05 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20041102)

Hi,
If I understand you correctly you should be able to use find:

find( vector == min(vector) )

/Soren

Ploett Norbert wrote:
Hello all,

I need to find a function that returns the index of the smallest value in a
vector. How do I go about this? I.e. is there a handy function that I do not
know of?

find() does not seem to do exactly what I want.

Tnx,


Norbert



-------------------------------------------------------------
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 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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]