ers</span>
0068         COVS=[];
0069         <span class="keyword">for</span> k=1:numel(IDX)
0070             COVS{k}=<a href="nt_cov.html" class="code" title="function [c,tw]=nt_cov(x,shifts,w);">nt_cov</a>(x(IDX{k},:))/size(x(IDX{k},:),1);
0071         <span class="keyword">end</span>
0072         B=<a href="#_sub2" class="code" title="subfunction B=covdists(C) ">covdists</a>(COVS);
0073         [a,idx]=min(B(:));
0074         [k1,k2]=ind2sub([size(B,1), size(B,1)],idx);
0075         
0076         <span 