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: Paul Kienzle
Subject: Re: Finding the index of the smallest value in a vector
Date: Thu, 18 Nov 2004 05:04:38 -0500

octave:1> [v,idx]=min([3,1,2])
v = 1
idx = 2

- Paul

On Nov 18, 2004, at 3:16 AM, 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]