Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: sorting, ranking
Date: Fri, 21 Aug 2009 18:25:18 +0000 (UTC)
Organization: Indiana University
Lines: 13
Message-ID: <h6moqe$sqf$1@fred.mathworks.com>
References: <h6mh83$j42$1@fred.mathworks.com> <h6mjir$ji9$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1250879118 29519 172.30.248.35 (21 Aug 2009 18:25:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 21 Aug 2009 18:25:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 406168
Xref: news.mathworks.com comp.soft-sys.matlab:565145


that did the trick steve.  It just seems to me that 

rank = temp(I)

should be valid syntax, and is more intuitive than writing 

rank(I) = temp

perhaps because I'm thinking that if I wanted to arbitrarily pull out values [7 4 9 1] from a vector A I would write

A([7 4 9 1])

and it would give me the 7th 4th 9th and 1st values from A in that order.