Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Picking Ones among Zeros
Date: Mon, 6 Jul 2009 20:30:19 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 11
Message-ID: <h2tmsr$6ko$1@fred.mathworks.com>
References: <h2oif2$g5h$1@fred.mathworks.com> <987ab093-7a3a-4f31-a470-832243bcbce9@q40g2000prh.googlegroups.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246912219 6808 172.30.248.37 (6 Jul 2009 20:30:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 6 Jul 2009 20:30:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:553220


Siyi Deng <mr.siyi.deng@gmail.com> wrote in message <987ab093-7a3a-4f31-a470-832243bcbce9@q40g2000prh.googlegroups.com>...

> 
> Here's another solution:
> 
> 
> b = strfind(a,[1 0]) - strfind(a,[0 1])

A quick fix for a=1 ? Heh?

Bruno