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$>
References: <hrujad$fmn$> <hrukjn$dda$> <hruo0e$5f8$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1273162085 18727 (6 May 2010 16:08:05 GMT)
NNTP-Posting-Date: Thu, 6 May 2010 16:08:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872154
Xref: comp.soft-sys.matlab:633206

"Sergei Koulayev" <> wrote in message <hruo0e$5f8$>...
> 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.