Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: I want to know the number of permutations.
Date: Mon, 29 Jun 2009 15:16:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <h2alri$2o3$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1246288562 2819 172.30.248.37 (29 Jun 2009 15:16:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 29 Jun 2009 15:16:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477385
Xref: news.mathworks.com comp.soft-sys.matlab:551451


Hello,
Just like we do with nchoosek, I want a way to obtain the number of rows of the output of perms, without obtaining what they are.

Please help!

Specifically, I want the following:

                          length(unique(perms([ones(1,20),zeros(1,20)])))

or

                          length(perms([ones(1,20),zeros(1,20)]))/400

(I think they give the same result)

end