Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Yet another Vectorization Question
Date: Wed, 17 Feb 2010 21:50:26 +0000 (UTC)
Organization: Sandia National Laboratories
Lines: 8
Message-ID: <hlhob2$4ao$1@fred.mathworks.com>
References: <hlhk42$s84$1@fred.mathworks.com> <hlhm94$os5$1@canopus.cc.umanitoba.ca>
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 1266443426 4440 172.30.248.37 (17 Feb 2010 21:50:26 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 17 Feb 2010 21:50:26 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2437
Xref: news.mathworks.com comp.soft-sys.matlab:609045

Nice!  thanks!

Walter Roberson <roberson@hushmail.com> wrote in message 
> The following has NOT been tested for timing
> 
> function ix = findfirstinrow( boolMat )
>    ix = size(boolMat,2) + 1 - sum(cumsum(BoolMat,2) > 0,2);
> end