Mercurial > octave-nkf
comparison scripts/set/powerset.m @ 12293:d6c70e64882c release-3-4-x
Add powerset function to documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 29 Jan 2011 21:47:56 -0800 |
parents | fd0a3ac60b0e |
children | 0232a5300adf |
comparison
equal
deleted
inserted
replaced
12292:76617b82cf4c | 12293:d6c70e64882c |
---|---|
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} powerset (@var{a}) | 20 ## @deftypefn {Function File} {} powerset (@var{a}) |
21 ## @deftypefnx {Function File} {} powerset (@var{a}, "rows") | 21 ## @deftypefnx {Function File} {} powerset (@var{a}, "rows") |
22 ## | 22 ## |
23 ## Return the cell array of all subsets of the set @var{a}. | 23 ## Return a cell array containing all subsets of the set @var{a}. |
24 ## | 24 ## |
25 ## @end deftypefn | 25 ## @end deftypefn |
26 ## @seealso{unique, union, setxor, setdiff, ismember} | 26 ## @seealso{unique, union, setxor, setdiff, ismember} |
27 | 27 |
28 function p = powerset (a, byrows_arg) | 28 function p = powerset (a, byrows_arg) |