Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!feeder.erje.net!news-transit.tcx.org.uk!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Regarding Matrrix Indexing
Date: Mon, 28 Nov 2011 16:37:53 -0600
Organization: Aioe.org NNTP Server
Lines: 16
Message-ID: <jb12fv$nlj$1@speranza.aioe.org>
References: <317bafe9-2a5e-4dbf-9b5d-10f59197d8e2@g21g2000yqc.googlegroups.com> <jb0hh0$88l$1@speranza.aioe.org> <711bdc84-eada-47f5-9fe4-d7cd15f144c1@p9g2000vbb.googlegroups.com> <jb0o04$r2i$2@speranza.aioe.org> <jb0qbs$b8o$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: q89k+tsFpa0C/Ue3zfCwhQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:750749

On 11/28/2011 2:19 PM, Roger Stafford wrote:
> dpb <none@non.net> wrote in message <jb0o04$r2i$2@speranza.aioe.org>...
>> So would
>>
>> A(I)=1;
> - - - - - - - -
> I get what Nasser gets, dpb. My system treats the I elements as linear
> indices.

Yeah, that's "my bad" on that-there one, sorry.

It seems like it _should_ work...but doesn't.  Don't know precisely why 
TMW chose the implementation as they did of A(I(:)) instead of the 
literal meaning of the index array elements.

--