0001 function nchan = chpair2nchan(nchpair); 0002 0003 ichan = [1:256]; 0004 chchan = (ichan.*(ichan+ones(1,256)))/2; 0005 nchan = ichan(find(chchan == nchpair));