Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Combinatorics question
Date: Fri, 30 Nov 2007 11:12:35 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 17
Message-ID: <fior73$a20$1@fred.mathworks.com>
References: <fimps8$7in$1@fred.mathworks.com> <fionja$p1$1@fred.mathworks.com> <fiopha$jb7$1@fred.mathworks.com> <fioqaj$rrr$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.fr>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1196421155 10304 172.30.248.38 (30 Nov 2007 11:12:35 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 30 Nov 2007 11:12:35 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:440189


"Greg von Winckel" <gregvw@gmail.com> wrote in message
<fioqaj$rrr$1@fred.mathworks.com>...
> Bruno, your code is very compact and looks good, although I
> should mention that zero is not a natural number. I can make
> the necessary modifications though.
> 

Sure, feel free to modify it. Or as I write above, you could
also call the original function:

V = allVL1(n,L1-n)+1

and this will return the vectors of natural numbers starting
from 1, and satified sum(V,2)=L1.

Bruno