Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to make the following case vectorized?
Date: Thu, 5 Jun 2008 16:23:50 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 24
Message-ID: <g293um$gs8$1@canopus.cc.umanitoba.ca>
References: <g26qnb$4nt$1@fred.mathworks.com> <g26sc0$2vn$1@canopus.cc.umanitoba.ca> <8ffc93c0-2ef6-4875-8d0d-e61b723c9e56@i76g2000hsf.googlegroups.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1212683030 17288 192.70.172.160 (5 Jun 2008 16:23:50 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 5 Jun 2008 16:23:50 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:472393



In article <8ffc93c0-2ef6-4875-8d0d-e61b723c9e56@i76g2000hsf.googlegroups.com>,
rych  <rychphd@gmail.com> wrote:
>On Jun 4, 9:02 pm, rober...@ibd.nrc-cnrc.gc.ca (Walter Roberson)
>wrote:

>> [Rank,Rank] = sort(ind,2);

>> (The repeating of the variables on the left hand side is a signal
>> to Matlab that the value of the first return parameter is to be
>> discarded.)

>Where is this feature documented? I mean, the discarding of the first
>output parameter?

Good question. I poked around a bit but did not find an explicit
statement in the documentation.

I could imagine the statement instead being interpreted as
assigning the value according to the -first- output argument
with that name and discarding the remaining ones, but I know from
past experience that when a name is repeated, it is the -last-
output value that has effect.
-- 
   "History is a pile of debris"                     -- Laurie Anderson