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 14:48:04 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 8
Message-ID: <hrukr4$t6a$1@fred.mathworks.com>
References: <hrujad$fmn$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 1273157284 29898 172.30.248.35 (6 May 2010 14:48:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 6 May 2010 14:48:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:633185

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:

A = 3;
A(2) = uint8(9);
A(3) = 'r';
whos A

Now as for the warning in your case, yet none in the above example, I question that.