Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!columbine.singnet.com.sg!not-for-mail
From: "G Iveco" <G.Iveco@google.com>
Newsgroups: comp.soft-sys.matlab
Subject: What's the function to compare array elements?
Date: Sun, 12 Aug 2007 18:26:17 +0800
Organization: Singapore Telecommunications Ltd
Lines: 7
Message-ID: <f9mhuo$c8u$1@reader01.singnet.com.sg>
Reply-To: "G Iveco" <G.Iveco@google.com>
NNTP-Posting-Host: 220.255.254.29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Xref: news.mathworks.com comp.soft-sys.matlab:423563


Basically in my array, if an element is lower than 0.5, set it to 0,
above 0.5, set it to 1.

Element by element comparison is too time consuming.