]> Creatis software - CreaPhase.git/blob - octave_packages/statistics-1.1.3/ff2n.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / statistics-1.1.3 / ff2n.m
1 ## Author: Paul Kienzle <pkienzle@users.sf.net>
2 ## This program is granted to the public domain.
3
4 ## -*- texinfo -*-
5 ## @deftypefn {Function File} ff2n (@var{n})
6 ## Full-factor design with n binary terms.
7 ##
8 ## @seealso {fullfact}
9 ## @end deftypefn
10
11 function A=ff2n(n)
12   A = fullfact (2 * ones (1,n)) - 1;
13 endfunction