Mercurial > hg > octave-lyh
diff scripts/specfun/perms.m @ 6754:451b346d8c2f
[project @ 2007-06-25 17:31:46 by jwe]
author | jwe |
---|---|
date | Mon, 25 Jun 2007 17:31:47 +0000 |
parents | 3f3e86e9fb57 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/scripts/specfun/perms.m +++ b/scripts/specfun/perms.m @@ -24,6 +24,15 @@ ## result has size @code{factorial (@var{n}) * @var{n}}, where @var{n} ## is the length of @var{v}. ## +## As an example, @code{perms([1, 2, 3])} returns the matrix +## @example +## 1 2 3 +## 2 1 3 +## 1 3 2 +## 2 3 1 +## 3 1 2 +## 3 2 1 +## @end example ## @end deftypefn function A = perms (v)