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$>
References: <hv8lfi$bnp$> <hv8pvu$qc0$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1276636564 5620 (15 Jun 2010 21:16:04 GMT)
NNTP-Posting-Date: Tue, 15 Jun 2010 21:16:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: comp.soft-sys.matlab:645216

"Roger Stafford" <> wrote in message <hv8pvu$qc0$>...
>  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.