0001 function chpair = channel_pairs(NChan); 0002 0003 0004 icount = 1; 0005 for ichan = 1:NChan 0006 for jchan = ichan:NChan 0007 chpair(ichan, jchan) = icount; 0008 chpair(jchan,ichan) = icount; 0009 icount = icount + 1; 0010 end 0011 end