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 20:03:04 +0000 (UTC)
Organization: Xoran Technologies
Lines: 7
Message-ID: <hrv79o$5qa$1@fred.mathworks.com>
References: <hrujad$fmn$1@fred.mathworks.com> <hrukjn$dda$1@fred.mathworks.com> <hruo0e$5f8$1@fred.mathworks.com> <hruq21$nef$1@fred.mathworks.com> <hrv34k$sic$1@fred.mathworks.com> <hrv49e$fd7$1@fred.mathworks.com> <hrv5v5$742$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1273176184 5962 172.30.248.37 (6 May 2010 20:03:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 6 May 2010 20:03:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:633283

"Sergei Koulayev" <sergei.koulayev@mathworks.com> wrote in message <hrv5v5$742$1@fred.mathworks.com>...

>Then later at the line #133 I try to write X(3)=pi. I really want this "pi" to be there! 
Instead of doing just what I told him to do - just put the number in there - Matlab is *invisibly* correcting my operation, giving me a wrong answer that I didn't expect. 
====================

But then why wouldn't you define X (or convert it) to a data type that can hold pi. You say you don't want MATLAB to invisibly alter your choice of data, but you do seem to want it to invisibly alter your choice of data type. Why is one better than the other?