Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to avoid for loops in 3 vector function.
Date: Wed, 4 May 2011 22:14:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <ipsj3c$4vf$1@fred.mathworks.com>
References: <ipmluu$l21$1@fred.mathworks.com> <ipph4t$8g9$1@fred.mathworks.com> <ippm7h$8au$1@fred.mathworks.com> <iprc6c$67r$1@fred.mathworks.com> <ipsdjp$ij3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1304547244 5103 172.30.248.45 (4 May 2011 22:14:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 May 2011 22:14:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2799711
Xref: news.mathworks.com comp.soft-sys.matlab:725265

Hi,

You could win a couple more seconds by doing 

tresh_inf_temp=double((abs(t_h) <= 0.5));
tresh_sup_temp=double(((t_h) > 0.5));

Regards,
Florin