Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 2 basic questions : 'lock' and 'median'
Date: Tue, 15 Jun 2010 21:16:04 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 6
Message-ID: <hv8qik$5fk$1@fred.mathworks.com>
References: <hv8lfi$bnp$1@fred.mathworks.com> <hv8pvu$qc0$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1276636564 5620 172.30.248.38 (15 Jun 2010 21:16:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 15 Jun 2010 21:16:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:645216

"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <hv8pvu$qc0$1@fred.mathworks.com>...
>  In any case, the median operation probably takes the lion's share of cpu time.

It's surely not optimally implemented in Matlab with sorting. The median could be retrieve in linear time.

Bruno