From help-octave-request at bevo dot che dot wisc dot edu Thu Dec 6 14:33:13 2001 Subject: Re: ponter or index From: Paul Kienzle To: helwig at geo dot uni-koeln dot de, help-octave@bevo.che.wisc.edu Date: Thu, 6 Dec 2001 15:33:01 -0500 octave> help min ... If called with two output arguments, also returns the index of the minimum value(s). Thus, [x, ix] = min ([1, 3, 0, 2, 5]) returns X = 0 and IX = 3. Paul Kienzle pkienzle at users dot sf dot net On Thu, Dec 06, 2001 at 02:24:57PM -0600, Stefan L. Helwig wrote: > > Hello, > can anybody help me with the following problem? > > Iwant to know at what position in a vector is the minimum. The minimum can > easily be found by min() but how do I find out at which position the minimum > is. I did not find any documentation on pointers. > > Thanks in advance > > Stefan > -- > --- > Dr. Stefan L. Helwig > Institut für Geophysik und Meteorologie der Universität zu Köln > Godesbergerstr. 10 TEL: +49 221 4705477 > 50968 Köln FAX: +49 221 4705481 > Germany E-MAIL helwig at geo dot uni-koeln dot de > > > > ------------------------------------------------------------- > 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 -------------------------------------------------------------