Path: news.mathworks.com!not-for-mail
From: "lars Man" <larsman@gmx.net>
Newsgroups: comp.soft-sys.matlab
Subject: position of the max value in a vector
Date: Sun, 4 May 2008 11:50:05 +0000 (UTC)
Organization: uni
Lines: 18
Message-ID: <fvk7td$ofp$1@fred.mathworks.com>
Reply-To: "lars Man" <larsman@gmx.net>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1209901805 25081 172.30.248.35 (4 May 2008 11:50:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 4 May 2008 11:50:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1366174
Xref: news.mathworks.com comp.soft-sys.matlab:466498


Hi all,
my problem is. I got a coulmn vector out of a calculation 
with about 10000 rows.
Now i want to know WHERE the maximum value is.

For example:
v= [1; 2; 3; 4; 3; 8; 3];
max(v)

8


but how can I get the position from the max. Here for 
example it shoud be 6 (cause of the positon of the max 
value. It ist 6). 
But i don't know to get it.

Thanks for help