MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > What a hell is wrong with logical indexing??? Real... 

Subject: What a hell is wrong with logical indexing??? Really??? From: Sergei Koulayev Date: 6 May, 2010 14:22:05 Message: 1 of 40 
People, 
Subject: What a hell is wrong with logical indexing??? Really??? From: Sean Date: 6 May, 2010 14:31:11 Message: 2 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrujad$fmn$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Steven Lord Date: 6 May, 2010 14:44:12 Message: 3 of 40 

Subject: What a hell is wrong with logical indexing??? Really??? From: Matt Fig Date: 6 May, 2010 14:48:04 Message: 4 of 40 
Nothing seems out of sorts to me. In the first case you are assigning a double to a double. In the second case you are assigning a double to a logical, so MATLAB preserves the logical. Sort of like this: 
Subject: What a hell is wrong with logical indexing??? Really??? From: Sergei Koulayev Date: 6 May, 2010 15:42:06 Message: 5 of 40 
Hi Steve, 
Subject: What a hell is wrong with logical indexing??? Really??? From: Sean Date: 6 May, 2010 15:56:04 Message: 6 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hruo0e$5f8$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Mark Shore Date: 6 May, 2010 16:08:05 Message: 7 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hruo0e$5f8$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Roger Stafford Date: 6 May, 2010 16:17:05 Message: 8 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hruo0e$5f8$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Alan B Date: 6 May, 2010 18:23:04 Message: 9 of 40 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <hruq21$nef$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Matt J Date: 6 May, 2010 18:32:04 Message: 10 of 40 

Subject: What a hell is wrong with logical indexing??? Really??? From: Bruno Luong Date: 6 May, 2010 18:36:04 Message: 11 of 40 

Subject: What a hell is wrong with logical indexing??? Really??? From: Alan B Date: 6 May, 2010 18:40:23 Message: 12 of 40 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hrv26k$q4e$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Sergei Koulayev Date: 6 May, 2010 18:52:04 Message: 13 of 40 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <hruq21$nef$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Matt J Date: 6 May, 2010 18:53:04 Message: 14 of 40 
"Alan B" <monguin61REM@OVETHIS.yahoo.com> wrote in message <hrv2en$d9t$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Sergei Koulayev Date: 6 May, 2010 19:01:05 Message: 15 of 40 
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hrv36g$30g$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Bruno Luong Date: 6 May, 2010 19:03:04 Message: 16 of 40 
> Why doesn't Matlab interpret such an array as logical? 
Subject: What a hell is wrong with logical indexing??? Really??? From: Bruno Luong Date: 6 May, 2010 19:10:21 Message: 17 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv34k$sic$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Roger Stafford Date: 6 May, 2010 19:10:22 Message: 18 of 40 
"Alan B" <monguin61REM@OVETHIS.yahoo.com> wrote in message <hrv1e8$63j$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Steven Lord Date: 6 May, 2010 19:11:46 Message: 19 of 40 

Subject: What a hell is wrong with logical indexing??? Really??? From: Alan B Date: 6 May, 2010 19:23:21 Message: 20 of 40 
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hrv36g$30g$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Matt J Date: 6 May, 2010 19:30:20 Message: 21 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv3lh$44d$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Walter Roberson Date: 6 May, 2010 19:31:37 Message: 22 of 40 
Sergei Koulayev wrote: 
Subject: What a hell is wrong with logical indexing??? Really??? From: Sergei Koulayev Date: 6 May, 2010 19:40:21 Message: 23 of 40 
"Steven Lord" <slord@mathworks.com> wrote in message <hrv49e$fd7$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Walter Roberson Date: 6 May, 2010 19:44:18 Message: 24 of 40 
Sergei Koulayev wrote: 
Subject: What a hell is wrong with logical indexing??? Really??? From: Matt J Date: 6 May, 2010 20:03:04 Message: 25 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv5v5$742$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Bruno Luong Date: 6 May, 2010 20:18:05 Message: 26 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv5v5$742$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Walter Roberson Date: 6 May, 2010 20:22:17 Message: 27 of 40 
Sergei Koulayev wrote: 
Subject: What a hell is wrong with logical indexing??? Really??? From: Sergei Koulayev Date: 6 May, 2010 20:27:05 Message: 28 of 40 
"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <hrv79o$5qa$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: us Date: 6 May, 2010 20:38:05 Message: 29 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrujad$fmn$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Bruno Luong Date: 6 May, 2010 20:40:21 Message: 30 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv8mp$9j2$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Matt J Date: 6 May, 2010 20:42:04 Message: 31 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv8mp$9j2$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Steven Lord Date: 6 May, 2010 20:52:38 Message: 32 of 40 

Subject: What a hell is wrong with logical indexing??? Really??? From: us Date: 6 May, 2010 21:00:21 Message: 33 of 40 
"Steven Lord" <slord@mathworks.com> wrote in message <hrva6h$jd7$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Walter Roberson Date: 6 May, 2010 21:19:00 Message: 34 of 40 
Sergei Koulayev wrote: 
Subject: What a hell is wrong with logical indexing??? Really??? From: James Tursa Date: 6 May, 2010 21:29:05 Message: 35 of 40 
"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv8mp$9j2$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: David Young Date: 6 May, 2010 21:39:04 Message: 36 of 40 
Sorry to add to this rather long discussion  but two quick points: 
Subject: What a hell is wrong with logical indexing??? Really??? From: dpb Date: 6 May, 2010 21:42:21 Message: 37 of 40 
Alan B wrote: 
Subject: What a hell is wrong with logical indexing??? Really??? From: James Tursa Date: 6 May, 2010 22:35:06 Message: 38 of 40 
"David Young" <d.s.young.notthisbit@sussex.ac.uk> wrote in message <hrvcto$kc7$1@fred.mathworks.com>... 
Subject: What a hell is wrong with logical indexing??? Really??? From: Steven Lord Date: 7 May, 2010 02:53:38 Message: 39 of 40 

Subject: What a hell is wrong with logical indexing??? Really??? From: Steve Eddins Date: 7 May, 2010 11:35:30 Message: 40 of 40 
On 5/6/2010 5:00 PM, us wrote: 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.