Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: CandyGirl <Rasha@dqnetwork.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: position of the max value in a vector
Date: Sun, 04 May 2008 13:52:21 EDT
Organization: The Math Forum
Lines: 7
Message-ID: <4783081.1209923571519.JavaMail.jakarta@nitrogen.mathforum.org>
References: <fvk7td$ofp$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1209923571 11668 144.118.30.135 (4 May 2008 17:52:51 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Sun, 4 May 2008 17:52:51 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:466536


Hi,

If you want the index try:

[maxval, maxind]=max(a)

:)