Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to generate all vectors of length n with entries are 0's or 1's then sum over
Date: Tue, 13 Jul 2010 19:38:04 +0000 (UTC)
Organization: Mcaster
Lines: 19
Message-ID: <i1ifas$r3q$1@fred.mathworks.com>
References: <i1iafp$6v7$1@fred.mathworks.com> <i1iddh$iq6$1@fred.mathworks.com>
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 1279049884 27770 172.30.248.37 (13 Jul 2010 19:38:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 Jul 2010 19:38:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1752079
Xref: news.mathworks.com comp.soft-sys.matlab:652817

Thanks for your quick reply, 

1-let us called them 
 
> z1=( 0 0 1 1 1)
>  z2=(0 1 0 1 1)
>  z3=(0 1 1 0 1)
>  z4=(0 1 1 1 0)
>  z5=(1 0 0 1 1)
>  z6=(1 0 1 0 1)
>  z7=(1 0 1 1 0)
>  z8=(1 1 0 0 1)
> z9=( 1 1 0 1 0)
>  z10=(1 1 1 0 0)
> 
How can i generate them?
then I would like to sum over z1, z2,....,z10 for something like (zi/3)+(1-zi)/8.

Thanks.