0001 function pairlist = get_all_pairs2(chans,nchan); 0002 0003 chpair = channel_pairs(nchan); 0004 ic = 1; 0005 for i = 1:size(chans,2)-1 0006 for j = i+1:size(chans,2) 0007 pairlist(ic) = chpair(chans(i),chans(j)); 0008 ic = ic+1; 0009 end; 0010 end; 0011 0012