Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: What a hell is wrong with logical indexing??? Really???
Date: Thu, 6 May 2010 16:08:05 +0000 (UTC)
Organization: Magma Geosciences Inc.
Lines: 8
Message-ID: <hruph4$i97$1@fred.mathworks.com>
References: <hrujad$fmn$1@fred.mathworks.com> <hrukjn$dda$1@fred.mathworks.com> <hruo0e$5f8$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1273162085 18727 172.30.248.35 (6 May 2010 16:08:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 6 May 2010 16:08:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872154
Xref: news.mathworks.com comp.soft-sys.matlab:633206

"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hruo0e$5f8$1@fred.mathworks.com>...
> 
> Really, what's this thing about "logicalness"? Its clearly not needed for the indexing purposes. For example, when I write X(ix), why should I care of ix is double or logical, as long as it contains 0 and 1's? 
> 
> Sergei
> 

Well, storage of only 1 byte per element rather than 8 bytes for one thing, and no way for floating point errors to mess things up for another.