Matlab 排列组合代码
COMBNTNS All possible combinations of a set of values
c = COMBNTNS(choicevec,choose) returns all combinations of the values of the input choice vector.
PERMS All possible permutations.
PERMS(1:N), or PERMS(V) where V is a vector of length N, creates a matrix with N! rows and N columns containing all possible permutations of the N elements.
%=================================
% Author: EmanLeeA@gmail.com ,
% http://emanlee.cnblogs.com
% Date: 2011/6/28
% Function: 置换检验, matlab codes for permutation tests
%====================