e" title="function [C,A,score]=nt_cluster1D_b(x);">nt_cluster1D</a>(zz);
0089     [~,idx]=min(score); <span class="comment">% choose best</span>
0090     A=A(:,idx);
0091     A=repmat(A',[dsr,1]);
0092     A=A(:);
0093     A(end:size(x,1))=A(end);
0094     IDX{1}=find(A==1); 
0095     IDX{2}=find(A==2);
0096 
0097     <span class="keyword">if</span> ~nargout; disp([<span class="string">'cluster sizes: '</span>, num2str([numel(IDX{1}), numel(IDX{2})])]); <span class="keyword">end</span>
0098     
0099     <s